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
eaced681
Commit
eaced681
authored
Jun 15, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
7973b942
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
wcfs/internal/xbtree/δbtail.go
wcfs/internal/xbtree/δbtail.go
+1
-1
wcfs/internal/xbtree/δbtail_test.go
wcfs/internal/xbtree/δbtail_test.go
+4
-3
No files found.
wcfs/internal/xbtree/δbtail.go
View file @
eaced681
...
@@ -316,7 +316,7 @@ func (δTtail *ΔTtail) rebuild(root zodb.Oid, δZtail *zodb.ΔTail, db *zodb.DB
...
@@ -316,7 +316,7 @@ func (δTtail *ΔTtail) rebuild(root zodb.Oid, δZtail *zodb.ΔTail, db *zodb.DB
vδZ
:=
δZtail
.
Data
()
vδZ
:=
δZtail
.
Data
()
for
{
for
{
δtkeycov
:=
&
RangedKeySet
{}
// all keys coming into tracking set during this lo..hi scan
δtkeycov
:=
&
RangedKeySet
{}
// all keys coming into tracking set during this lo..hi scan
trackNewCur
:=
trackNew
.
Clone
()
trackNewCur
:=
trackNew
.
Clone
()
// trackNew adjusted when going to i<- entry
for
i
:=
len
(
vδZ
)
-
1
;
i
>=
0
;
i
--
{
for
i
:=
len
(
vδZ
)
-
1
;
i
>=
0
;
i
--
{
δZ
:=
vδZ
[
i
]
δZ
:=
vδZ
[
i
]
...
...
wcfs/internal/xbtree/δbtail_test.go
View file @
eaced681
...
@@ -1066,10 +1066,11 @@ func xverifyΔBTail_rebuild(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, t0, t1
...
@@ -1066,10 +1066,11 @@ func xverifyΔBTail_rebuild(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, t0, t1
xverifyΔBTail_rebuild_TR
(
t
,
db
,
δbtail_
,
t2
,
treeRoot
,
xat
,
xverifyΔBTail_rebuild_TR
(
t
,
db
,
δbtail_
,
t2
,
treeRoot
,
xat
,
// after Track(keys2)
// after Track(keys2)
keys2
,
keys2
,
// /*trackSet*/ t2.xkv.trackSet(keys1_0.Union(keys1_2)),
/*trackSet*/
t2
.
xkv
.
trackSet
(
keys1_2
),
/*trackSet*/
t2
.
xkv
.
trackSet
(
keys1_2
),
// FIXME vvv trackNew should not cover ranges that are already in trackSet
/*trackNew*/
t2
.
xkv
.
trackSet
(
keys2
)
.
Difference
(
/*trackNew*/
t2
.
xkv
.
trackSet
(
keys2
),
// trackNew should not cover ranges that are
// already in trackSet
t2
.
xkv
.
trackSet
(
keys1_2
)),
// after rebuild
// after rebuild
/* trackSet=*/
t2
.
xkv
.
trackSet
(
keys12R
),
/* trackSet=*/
t2
.
xkv
.
trackSet
(
keys12R
),
...
...
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