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
6210eec5
Commit
6210eec5
authored
3 years ago
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
fdcd011f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
wcfs/internal/xbtree/rangeset.go
wcfs/internal/xbtree/rangeset.go
+1
-1
wcfs/internal/xbtree/treediff.go
wcfs/internal/xbtree/treediff.go
+1
-1
wcfs/internal/xbtree/xbtree.go
wcfs/internal/xbtree/xbtree.go
+2
-2
wcfs/internal/xbtree/δbtail_test.go
wcfs/internal/xbtree/δbtail_test.go
+4
-2
No files found.
wcfs/internal/xbtree/rangeset.go
View file @
6210eec5
...
...
@@ -402,7 +402,7 @@ func (r KeyRange) String() string {
if
hi
<
KeyMax
{
hi
+=
1
}
return
fmt
.
Sprintf
(
"[%s,%s)"
,
k
eyStr
(
r
.
lo
),
keyS
tr
(
hi
))
return
fmt
.
Sprintf
(
"[%s,%s)"
,
k
str
(
r
.
lo
),
ks
tr
(
hi
))
}
...
...
This diff is collapsed.
Click to expand it.
wcfs/internal/xbtree/treediff.go
View file @
6210eec5
...
...
@@ -992,7 +992,7 @@ func (rn nodeInRange) String() string {
if
hi
<
KeyMax
{
hi
+=
1
}
return
fmt
.
Sprintf
(
"%s[%s,%s)%s"
,
done
,
k
eyStr
(
rn
.
lo
),
keyS
tr
(
hi
),
vnode
(
rn
.
node
))
return
fmt
.
Sprintf
(
"%s[%s,%s)%s"
,
done
,
k
str
(
rn
.
lo
),
ks
tr
(
hi
),
vnode
(
rn
.
node
))
}
// push pushes element to node stack.
...
...
This diff is collapsed.
Click to expand it.
wcfs/internal/xbtree/xbtree.go
View file @
6210eec5
...
...
@@ -70,8 +70,8 @@ func nodePathToPath(nodePath []Node) (path []zodb.Oid) {
}
// k
eyS
tr formats key as string.
func
k
eyS
tr
(
k
Key
)
string
{
// k
s
tr formats key as string.
func
k
s
tr
(
k
Key
)
string
{
if
k
==
KeyMin
{
return
"-∞"
}
...
...
This diff is collapsed.
Click to expand it.
wcfs/internal/xbtree/δbtail_test.go
View file @
6210eec5
...
...
@@ -642,7 +642,7 @@ func _KAdj(t1, t2 *tTreeCommit, keysv ...SetKey) (kadj KAdjMatrix) {
done1
:=
&
RangedKeySet
{}
done2
:=
&
RangedKeySet
{}
tracefKAdj
(
"
\n
k%
d
\n
"
,
k
)
tracefKAdj
(
"
\n
k%
s
\n
"
,
kstr
(
k
)
)
for
!
q1
.
Empty
()
||
!
q2
.
Empty
()
{
tracefKAdj
(
"q1: %s
\t
done1: %s
\n
"
,
q1
,
done1
)
tracefKAdj
(
"q2: %s
\t
done2: %s
\n
"
,
q2
,
done2
)
...
...
@@ -654,6 +654,7 @@ func _KAdj(t1, t2 *tTreeCommit, keysv ...SetKey) (kadj KAdjMatrix) {
for
k_
:=
range
keys
{
if
b1
.
lo
<=
k_
&&
k_
<=
b1
.
hi_
{
adj1
.
Add
(
k_
)
tracefKAdj
(
" adj1 += %s
\t
-> %s
\n
"
,
kstr
(
k_
),
adj1
)
}
}
b1r
:=
KeyRange
{
b1
.
lo
,
b1
.
hi_
}
...
...
@@ -682,6 +683,7 @@ func _KAdj(t1, t2 *tTreeCommit, keysv ...SetKey) (kadj KAdjMatrix) {
for
k_
:=
range
keys
{
if
b2
.
lo
<=
k_
&&
k_
<=
b2
.
hi_
{
adj2
.
Add
(
k_
)
tracefKAdj
(
" adj2 += %s
\t
-> %s
\n
"
,
kstr
(
k_
),
adj2
)
}
}
b2r
:=
KeyRange
{
b2
.
lo
,
b2
.
hi_
}
...
...
@@ -1999,7 +2001,7 @@ func (b *RBucket) String() string {
if
hi
<
KeyMax
{
hi
+=
1
}
return
fmt
.
Sprintf
(
"[%s,%s)B%s{%s}"
,
k
eyStr
(
b
.
lo
),
keyS
tr
(
hi
),
b
.
oid
,
kvtxt
(
b
.
kv
))
return
fmt
.
Sprintf
(
"[%s,%s)B%s{%s}"
,
k
str
(
b
.
lo
),
ks
tr
(
hi
),
b
.
oid
,
kvtxt
(
b
.
kv
))
}
...
...
This diff is collapsed.
Click to expand it.
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