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
3c979803
Commit
3c979803
authored
Sep 15, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
016bd9be
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 @
3c979803
...
@@ -40,7 +40,7 @@ package zdata
...
@@ -40,7 +40,7 @@ package zdata
// to avoid complexity of recomputing vδF when tracking set changes. Most of
// to avoid complexity of recomputing vδF when tracking set changes. Most of
// ΔFtail complexity is, thus, located in ΔBtail, which implements BTree diff
// ΔFtail complexity is, thus, located in ΔBtail, which implements BTree diff
// and handles complexity of recomputing vδB when set of tracked blocks
// and handles complexity of recomputing vδB when set of tracked blocks
// changes.
// changes
after new track requests
.
//
//
// Changes to ZBigFile object indicate epochs. Epochs could be:
// Changes to ZBigFile object indicate epochs. Epochs could be:
//
//
...
@@ -164,8 +164,8 @@ type ΔF struct {
...
@@ -164,8 +164,8 @@ type ΔF struct {
type
ΔFile
struct
{
type
ΔFile
struct
{
Rev
zodb
.
Tid
Rev
zodb
.
Tid
Epoch
bool
// whether file changed completely
Epoch
bool
// whether file changed completely
Blocks
setI64
// changed blocks
XXX -> ΔBlocks ?
Blocks
setI64
// changed blocks
Size
bool
// whether file size changed
XXX -> ΔSize?
Size
bool
// whether file size changed
}
}
// NewΔFtail creates new ΔFtail object.
// NewΔFtail creates new ΔFtail object.
...
@@ -192,14 +192,14 @@ func (δFtail *ΔFtail) Tail() zodb.Tid { return δFtail.δBtail.Tail() }
...
@@ -192,14 +192,14 @@ func (δFtail *ΔFtail) Tail() zodb.Tid { return δFtail.δBtail.Tail() }
// Track associates file[blk]@head with tree path and zblk object.
// Track associates file[blk]@head with tree path and zblk object.
//
//
// Path root becomes associated with the file, and the path and zblk object become tracked.
// One root can be associated with several files (each provided on different Track calls).
//
// zblk can be nil, which represents a hole.
// zblk can be nil, which represents a hole.
// XXX blk=-1 is used for tracking after Size (no zblk is accessed at all).
//
//
// XXX
Track adds tree path to tracked set and associates path root with file
.
// XXX
blk=-1 is used for tracking after Size (no zblk is accessed at all)
.
//
//
// Objects in path and zblk must be with .PJar().At() == .head
// Objects in path and zblk must be with .PJar().At() == .head
//
// A root can be associated with several files (each provided on different Track call).
func
(
δFtail
*
ΔFtail
)
Track
(
file
*
ZBigFile
,
blk
int64
,
path
[]
btree
.
LONode
,
zblk
ZBlk
)
{
func
(
δFtail
*
ΔFtail
)
Track
(
file
*
ZBigFile
,
blk
int64
,
path
[]
btree
.
LONode
,
zblk
ZBlk
)
{
// XXX locking
// XXX locking
...
...
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