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
016bd9be
Commit
016bd9be
authored
Sep 14, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b984e690
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
wcfs/internal/zdata/δftail.go
wcfs/internal/zdata/δftail.go
+7
-7
No files found.
wcfs/internal/zdata/δftail.go
View file @
016bd9be
...
...
@@ -28,7 +28,7 @@ package zdata
//
// ΔFtail organization
//
// ΔFtail leverages
// ΔFtail leverages
:
//
// - ΔBtail to track changes to ZBigFile.blktab BTree, and
// - ΔZtail to track changes to ZBlk objects and to ZBigFile object itself.
...
...
@@ -42,7 +42,7 @@ package zdata
// and handles complexity of recomputing vδB when set of tracked blocks
// changes.
//
// Changes to ZBigFile object indicate epochs. Epochs could be
// Changes to ZBigFile object indicate epochs. Epochs could be
:
//
// - file creation or deletion,
// - change of ZBigFile.blksize,
...
...
@@ -604,6 +604,11 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado
// δFile ────────o───────o──────x─────x────────────────────────
δftail
,
err
:=
δFtail
.
rebuildIfNeeded
(
zfile
.
POid
())
if
err
!=
nil
{
panic
(
err
)
// XXX
}
var
vδf
[]
*
ΔFile
// vδfTail returns or creates vδf entry for revision tail
// tail must be <= all vδf revisions
...
...
@@ -623,11 +628,6 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado
return
δfTail
}
δftail
,
err
:=
δFtail
.
rebuildIfNeeded
(
zfile
.
POid
())
if
err
!=
nil
{
panic
(
err
)
// XXX
}
vδZ
:=
δFtail
.
δBtail
.
ΔZtail
()
.
SliceByRev
(
lo
,
hi
)
iz
:=
len
(
vδZ
)
-
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