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
4b82470d
Commit
4b82470d
authored
Sep 21, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8fe2111f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
wcfs/internal/xbtree/δbtail.go
wcfs/internal/xbtree/δbtail.go
+4
-2
No files found.
wcfs/internal/xbtree/δbtail.go
View file @
4b82470d
...
@@ -846,8 +846,6 @@ func (δBtail *ΔBtail) SliceByRootRev(root zodb.Oid, lo, hi zodb.Tid) /*readonl
...
@@ -846,8 +846,6 @@ func (δBtail *ΔBtail) SliceByRootRev(root zodb.Oid, lo, hi zodb.Tid) /*readonl
if
!
ok
{
if
!
ok
{
return
[]
ΔTree
{}
return
[]
ΔTree
{}
}
}
// XXX dup data - because they can be further rebuilt in parallel to caller using them
// XXX no -> dup data in rebuild, not here
vδT
:=
δTtail
.
vδT
vδT
:=
δTtail
.
vδT
l
:=
len
(
vδT
)
l
:=
len
(
vδT
)
...
@@ -867,6 +865,10 @@ func (δBtail *ΔBtail) SliceByRootRev(root zodb.Oid, lo, hi zodb.Tid) /*readonl
...
@@ -867,6 +865,10 @@ func (δBtail *ΔBtail) SliceByRootRev(root zodb.Oid, lo, hi zodb.Tid) /*readonl
for
;
i
>=
0
&&
vδT
[
i
]
.
Rev
>
lo
;
i
--
{}
for
;
i
>=
0
&&
vδT
[
i
]
.
Rev
>
lo
;
i
--
{}
i
++
i
++
// NOTE: no need to duplicate returned vδT slice because
// _ΔTtail.rebuild clones vδT before modifying it. This way the data we
// return to caller will stay unchanged even if rebuild is running
// simulataneously.
return
vδT
[
i
:
j
+
1
]
return
vδT
[
i
:
j
+
1
]
}
}
...
...
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