Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
d13726ba
Commit
d13726ba
authored
Feb 06, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9e3f6bb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
wcfs/internal/δbtree/δbtree.go
wcfs/internal/δbtree/δbtree.go
+0
-1
wcfs/zblk.go
wcfs/zblk.go
+5
-2
No files found.
wcfs/internal/δbtree/δbtree.go
View file @
d13726ba
...
...
@@ -64,7 +64,6 @@ func NewPathSet() *PathSet {
// XXX catch cycles on add?
func
(
m
*
PathSet
)
Add
(
master
interface
{},
path
[]
zodb
.
IPersistent
)
{
fmt
.
Printf
(
"
\n\n
PathSet.Add %v %s
\n
"
,
master
,
path
)
panic
(
"aaa"
)
l
:=
len
(
path
)
if
l
==
0
{
...
...
wcfs/zblk.go
View file @
d13726ba
...
...
@@ -510,14 +510,17 @@ func (bf *ZBigFile) Size(ctx context.Context) (_ int64, treePath []zodb.IPersist
}
defer
bf
.
PDeactivate
()
fmt
.
Printf
(
"
\n\n\n
Size ...
\n
"
)
tailblk
,
ok
,
err
:=
bf
.
blktab
.
VMaxKey
(
ctx
,
func
(
node
zodb
.
IPersistent
)
{
fmt
.
Printf
(
"visit %v
\n
"
,
node
)
treePath
=
append
(
treePath
,
node
)
})
if
err
!=
nil
{
fmt
.
Printf
(
"end Size (%v)
\n
"
,
treePath
)
if
err
!=
nil
{
return
0
,
nil
,
err
}
if
!
ok
{
return
0
,
nil
,
nil
return
0
,
treePath
,
nil
}
size
:=
(
tailblk
+
1
)
*
bf
.
blksize
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment