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
89d73206
Commit
89d73206
authored
Aug 04, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
786dd336
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
wcfs/internal/zdata/δftail.go
wcfs/internal/zdata/δftail.go
+3
-1
No files found.
wcfs/internal/zdata/δftail.go
View file @
89d73206
...
@@ -517,6 +517,8 @@ func (δftail *_ΔFileTail) forgetPast(revCut zodb.Tid) {
...
@@ -517,6 +517,8 @@ func (δftail *_ΔFileTail) forgetPast(revCut zodb.Tid) {
//
//
// the caller must not modify returned slice.
// the caller must not modify returned slice.
//
//
// XXX only tracked blocks are guaranteed to be present.
//
// Note: contrary to regular go slicing, low is exclusive while high is inclusive.
// Note: contrary to regular go slicing, low is exclusive while high is inclusive.
func
(
δFtail
*
ΔFtail
)
SliceByFileRev
(
zfile
*
ZBigFile
,
lo
,
hi
zodb
.
Tid
)
/*readonly*/
[]
*
ΔFile
{
func
(
δFtail
*
ΔFtail
)
SliceByFileRev
(
zfile
*
ZBigFile
,
lo
,
hi
zodb
.
Tid
)
/*readonly*/
[]
*
ΔFile
{
fmt
.
Printf
(
"
\n
slice f<%s> (@%s,@%s]
\n
"
,
zfile
.
POid
(),
lo
,
hi
)
fmt
.
Printf
(
"
\n
slice f<%s> (@%s,@%s]
\n
"
,
zfile
.
POid
(),
lo
,
hi
)
...
@@ -659,7 +661,7 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado
...
@@ -659,7 +661,7 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado
if
δzblk
.
New
!=
xbtree
.
VDEL
{
if
δzblk
.
New
!=
xbtree
.
VDEL
{
inblk
,
ok
:=
Zinblk
[
δzblk
.
New
]
inblk
,
ok
:=
Zinblk
[
δzblk
.
New
]
if
ok
{
if
ok
{
inblk
.
Del
(
blk
)
inblk
.
Del
(
blk
)
// FIXME have to recheck vδZ for later entries of δzblk.New
}
}
}
}
if
δzblk
.
Old
!=
xbtree
.
VDEL
{
if
δzblk
.
Old
!=
xbtree
.
VDEL
{
...
...
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