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
e7bc6180
Commit
e7bc6180
authored
Aug 05, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ec505b13
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
wcfs/internal/zdata/δftail.go
wcfs/internal/zdata/δftail.go
+3
-4
No files found.
wcfs/internal/zdata/δftail.go
View file @
e7bc6180
...
@@ -554,7 +554,7 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado
...
@@ -554,7 +554,7 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado
if
δfTail
.
Rev
==
tail
{
if
δfTail
.
Rev
==
tail
{
return
δfTail
return
δfTail
}
}
if
!
(
tail
<
=
δfTail
.
Rev
)
{
if
!
(
tail
<
δfTail
.
Rev
)
{
panic
(
"tail not ↓"
)
panic
(
"tail not ↓"
)
}
}
}
}
...
@@ -581,7 +581,7 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado
...
@@ -581,7 +581,7 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado
// vδE[ie] is next epoch
// vδE[ie] is next epoch
// vδE[ie-1] is epoch that covers hi
// vδE[ie-1] is epoch that covers hi
// loop through all epochs till lo
// loop through all epochs
from hi
till lo
for
lastEpoch
:=
false
;
!
lastEpoch
;
{
for
lastEpoch
:=
false
;
!
lastEpoch
;
{
// current epoch
// current epoch
var
epoch
zodb
.
Tid
var
epoch
zodb
.
Tid
...
@@ -613,7 +613,6 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado
...
@@ -613,7 +613,6 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado
Zinblk
[
zblk
]
=
inblk
.
Clone
()
Zinblk
[
zblk
]
=
inblk
.
Clone
()
}
}
}
}
// XXX ZinblkAt
}
else
{
}
else
{
δE
:=
vδE
[
ie
+
1
]
δE
:=
vδE
[
ie
+
1
]
root
=
δE
.
oldRoot
root
=
δE
.
oldRoot
...
@@ -633,7 +632,7 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado
...
@@ -633,7 +632,7 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado
}
}
// merge vδZ and vδT of current epoch
// merge vδZ and vδT of current epoch
for
((
iz
>=
0
&&
vδZ
[
iz
]
.
Rev
>
epoch
)
||
it
>=
0
)
{
// XXX -> `δZ.Rev > epoch`
for
((
iz
>=
0
&&
vδZ
[
iz
]
.
Rev
>
epoch
)
||
it
>=
0
)
{
// δZ that is covered by current Zinblk
// δZ that is covered by current Zinblk
// -> update δf
// -> update δf
if
iz
>=
0
&&
vδZ
[
iz
]
.
Rev
>
epoch
{
if
iz
>=
0
&&
vδZ
[
iz
]
.
Rev
>
epoch
{
...
...
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