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
00bb8991
Commit
00bb8991
authored
Oct 18, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
926408d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
wcfs/internal/zdata/δftail.go
wcfs/internal/zdata/δftail.go
+11
-5
No files found.
wcfs/internal/zdata/δftail.go
View file @
00bb8991
...
@@ -727,14 +727,20 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado
...
@@ -727,14 +727,20 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado
// take atomic Zinblk snapshot that covers vδZ
// take atomic Zinblk snapshot that covers vδZ
//
//
// - the reason we take snapshot is because simultaneous Track requests might
// - the reason we take atomic snapshot is because simultaneous Track
// change Zinblk concurrently, and without snapshotting this might result
// requests might change Zinblk concurrently, and without snapshotting
// in changes to a block being not uniformly present in result (some
// this might result in changes to a block being not uniformly present in
// revision indicates change to that block, while another one - where the
// the returned vδf (some revision indicates change to that block, while
// block is too actually changed - does not indicate change to that block).
// another one - where the block is too actually changed - does not
// indicate change to that block).
//
//
// - the reason we limit snapshot to vδZ is to reduce amount of under-lock
// - the reason we limit snapshot to vδZ is to reduce amount of under-lock
// copying, because original Zinblk is potentially very large.
// copying, because original Zinblk is potentially very large.
//
// NOTE the other approach could be to keep blocks in _RootTrack.Zinblk with
// serial (!= zodb serial), and work with that _RootTrack.Zinblk snapshot by
// ignoring all blocks with serial > serial of snapshot view. Do not kill
// _ZinblkOverlay yet because we keep this approach in mind for the future.
ZinblkSnap
:=
map
[
zodb
.
Oid
]
setI64
{}
ZinblkSnap
:=
map
[
zodb
.
Oid
]
setI64
{}
δZAllOid
:=
setOid
{}
δZAllOid
:=
setOid
{}
for
_
,
δZ
:=
range
vδZ
{
for
_
,
δZ
:=
range
vδZ
{
...
...
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