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
de802f8e
Commit
de802f8e
authored
Jun 07, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
941dbd45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
13 deletions
+10
-13
wcfs/internal/xbtree/rangeset.go
wcfs/internal/xbtree/rangeset.go
+1
-4
wcfs/internal/xbtree/δbtail_test.go
wcfs/internal/xbtree/δbtail_test.go
+9
-9
No files found.
wcfs/internal/xbtree/rangeset.go
View file @
de802f8e
...
...
@@ -45,13 +45,12 @@ type RangedKeySet struct {
}
///* XXX temp - reenable
// Has returns whether key k belongs to the range.
func
(
r
*
KeyRange
)
Has
(
k
Key
)
bool
{
return
(
r
.
lo
<=
k
&&
k
<=
r
.
hi_
)
}
// Add adds key k to the set.
func
(
S
*
RangedKeySet
)
Add
(
k
Key
)
{
S
.
AddRange
(
KeyRange
{
lo
:
k
,
hi_
:
k
})
...
...
@@ -67,8 +66,6 @@ func (S *RangedKeySet) Has(k Key) bool {
return
S
.
HasRange
(
KeyRange
{
lo
:
k
,
hi_
:
k
})
}
//*/
// AddRange adds range r to the set.
func
(
S
*
RangedKeySet
)
AddRange
(
r
KeyRange
)
{
...
...
wcfs/internal/xbtree/δbtail_test.go
View file @
de802f8e
...
...
@@ -1562,17 +1562,17 @@ func TestΔBTail(t *testing.T) {
oo
:
K
(
1
,
2
,
3
,
4
,
5
,
oo
)}),
// depth=2; bucket split; +3 in new bucket; t0 and t1 split;
// +right arm (T7/B45-B89)
which remain not tracked unless previously accessed
.
// +right arm (T7/B45-B89).
"T/T/B1:a,2:b"
,
Δ
(
"T4/T2-T7/B1:a-B2:b,3:c-B4:d,5:e-B8:h,9:i"
,
A
{
1
:
K
(
1
,
2
,
3
),
2
:
K
(
1
,
2
,
3
),
3
:
K
(
1
,
2
,
3
),
4
:
K
(
1
,
2
,
3
,
4
,
5
),
5
:
K
(
1
,
2
,
3
,
4
,
5
),
8
:
K
(
1
,
2
,
3
,
8
,
9
),
9
:
K
(
1
,
2
,
3
,
8
,
9
),
oo
:
K
(
1
,
2
,
3
,
8
,
9
,
oo
)}),
A
{
1
:
K
(
1
,
2
,
3
,
4
,
5
,
8
,
9
,
oo
),
2
:
K
(
1
,
2
,
3
,
4
,
5
,
8
,
9
,
oo
),
3
:
K
(
1
,
2
,
3
,
4
,
5
,
8
,
9
,
oo
),
4
:
K
(
1
,
2
,
3
,
4
,
5
,
8
,
9
,
oo
),
5
:
K
(
1
,
2
,
3
,
4
,
5
,
8
,
9
,
oo
),
8
:
K
(
1
,
2
,
3
,
4
,
5
,
8
,
9
,
oo
),
9
:
K
(
1
,
2
,
3
,
4
,
5
,
8
,
9
,
oo
),
oo
:
K
(
1
,
2
,
3
,
4
,
5
,
8
,
9
,
oo
)}),
// 2 reflow to right B neighbour; 8 split into new B; δ=ø
...
...
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