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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
d5a07d5f
Commit
d5a07d5f
authored
Jun 22, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
3c207b7c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
wcfs/δbtail.go
wcfs/δbtail.go
+21
-7
No files found.
wcfs/δbtail.go
View file @
d5a07d5f
...
...
@@ -527,6 +527,17 @@ func (rc rangeCover) Get(k Key) *nodeInRange {
return
rn
}
func
(
rc
rangeCover
)
String
()
string
{
s
:=
""
for
_
,
rn
:=
range
rc
{
if
s
!=
""
{
s
+=
" "
}
s
+=
fmt
.
Sprintf
(
"[%v,%v]%s"
,
rn
.
lo
,
rn
.
hi_
,
vnode
(
rn
.
node
))
}
return
s
}
// treediff computes δT for tree specified by root in between old..new.
...
...
@@ -1078,16 +1089,19 @@ func vtree(v []TreeEntry) string {
if
s
!=
""
{
s
+=
" "
}
c
:=
e
.
Child
()
ckind
:=
"?"
switch
c
.
(
type
)
{
case
*
Tree
:
ckind
=
"T"
case
*
Bucket
:
ckind
=
"B"
s
+=
fmt
.
Sprintf
(
"%v %s"
,
e
.
Key
(),
vnode
(
e
.
Child
()))
}
return
s
}
s
+=
fmt
.
Sprintf
(
"%v %s%s"
,
e
.
Key
(),
ckind
,
c
.
POid
())
// vnode returns brief huan-readable representation of node.
func
vnode
(
node
Node
)
string
{
kind
:=
"?"
switch
node
.
(
type
)
{
case
*
Tree
:
kind
=
"T"
case
*
Bucket
:
kind
=
"B"
}
return
s
return
fmt
.
Sprintf
(
"%s%s"
,
kind
,
node
.
POid
())
}
...
...
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