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
62fb0e85
Commit
62fb0e85
authored
Sep 13, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ac999990
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
wcfs/internal/xbtree/δbtail.go
wcfs/internal/xbtree/δbtail.go
+2
-0
wcfs/internal/zdata/δftail.go
wcfs/internal/zdata/δftail.go
+3
-3
No files found.
wcfs/internal/xbtree/δbtail.go
View file @
62fb0e85
...
@@ -842,6 +842,8 @@ func (δBtail *ΔBtail) GetAt(root zodb.Oid, key Key, at zodb.Tid) (value Value,
...
@@ -842,6 +842,8 @@ func (δBtail *ΔBtail) GetAt(root zodb.Oid, key Key, at zodb.Tid) (value Value,
//
//
// the caller must not modify returned slice.
// the caller must not modify returned slice.
//
//
// Only tracked keys 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.
//
//
// XXX root -> *Tree ?
// XXX root -> *Tree ?
...
...
wcfs/internal/zdata/δftail.go
View file @
62fb0e85
...
@@ -502,7 +502,8 @@ func (δFtail *ΔFtail) ForgetPast(revCut zodb.Tid) {
...
@@ -502,7 +502,8 @@ func (δFtail *ΔFtail) ForgetPast(revCut zodb.Tid) {
δFtail
.
δBtail
.
ForgetPast
(
revCut
)
δFtail
.
δBtail
.
ForgetPast
(
revCut
)
// XXX locking
// XXX locking
// XXX keep index which file changed epoch where (similarly to ΔBtail),
// TODO keep index which file changed epoch where (similarly to ΔBtail),
// and, instead of scanning all files, trim vδE only on files that is really necessary.
// and, instead of scanning all files, trim vδE only on files that is really necessary.
for
_
,
δftail
:=
range
δFtail
.
byFile
{
for
_
,
δftail
:=
range
δFtail
.
byFile
{
δftail
.
forgetPast
(
revCut
)
δftail
.
forgetPast
(
revCut
)
...
@@ -538,7 +539,7 @@ func (δftail *_ΔFileTail) forgetPast(revCut zodb.Tid) {
...
@@ -538,7 +539,7 @@ func (δftail *_ΔFileTail) forgetPast(revCut zodb.Tid) {
//
//
// the caller must not modify returned slice.
// the caller must not modify returned slice.
//
//
//
XXX o
nly tracked blocks are guaranteed to be present.
//
O
nly 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
{
...
@@ -546,7 +547,6 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado
...
@@ -546,7 +547,6 @@ func (δFtail *ΔFtail) SliceByFileRev(zfile *ZBigFile, lo, hi zodb.Tid) /*reado
xtail
.
AssertSlice
(
δFtail
,
lo
,
hi
)
xtail
.
AssertSlice
(
δFtail
,
lo
,
hi
)
// XXX locking
// XXX locking
// XXX rebuild
// query .δBtail.SliceByRootRev(file.blktab, lo, hi) +
// query .δBtail.SliceByRootRev(file.blktab, lo, hi) +
// merge δZBlk history with that.
// merge δZBlk history with that.
...
...
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