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
fe364dd4
Commit
fe364dd4
authored
Jun 24, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d6f15415
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wcfs/δbtail.go
wcfs/δbtail.go
+3
-3
No files found.
wcfs/δbtail.go
View file @
fe364dd4
...
...
@@ -528,7 +528,7 @@ type rangeSplit []*nodeInRange // key↑
func
(
rs
rangeSplit
)
Get
(
k
Key
)
*
nodeInRange
{
rnode
,
ok
:=
rs
.
Get_
(
k
)
if
!
ok
{
panicf
(
"key %v not covered
"
,
k
)
panicf
(
"key %v not covered
; coverage: %s"
,
k
,
rs
)
}
return
rnode
}
...
...
@@ -544,7 +544,7 @@ func (rs rangeSplit) Get_(k Key) (rnode *nodeInRange, ok bool) {
rn
:=
rs
[
i
]
if
!
(
rn
.
lo
<=
k
&&
k
<=
rn
.
hi_
)
{
panicf
(
"BUG: get(%v) -> %s
"
,
k
,
rn
)
panicf
(
"BUG: get(%v) -> %s
; coverage: %s"
,
k
,
rn
,
rs
)
}
return
rn
,
true
...
...
@@ -563,7 +563,7 @@ func (prs *rangeSplit) Expand(rnode *nodeInRange) (children rangeSplit) {
return
rnode
.
hi_
<=
rs
[
i
]
.
hi_
})
if
i
==
len
(
rs
)
||
rs
[
i
]
!=
rnode
{
panicf
(
"%s not in rangeSplit
"
,
rnode
)
panicf
(
"%s not in rangeSplit
; coverage: %s"
,
rnode
,
rs
)
}
// [i].Key ≤ [i].Child.*.Key < [i+1].Key i ∈ [0, len([]))
...
...
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