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
ee79a1ad
Commit
ee79a1ad
authored
Apr 15, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
bb321bc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
wcfs/internal/xbtree/δbtail.go
wcfs/internal/xbtree/δbtail.go
+3
-3
wcfs/δftail.go
wcfs/δftail.go
+1
-1
No files found.
wcfs/internal/xbtree/δbtail.go
View file @
ee79a1ad
...
...
@@ -58,7 +58,7 @@ type Value = zodb.Oid // XXX assumes key points to IPersistent
//
// XXX which operations are provided.
//
// - Get
At
(root, key, at)
// - Get(root, key, at)
//
// An example for tracked set is a set of visited BTree paths.
// There is no requirement that tracked set belongs to only one single BTree.
...
...
@@ -233,7 +233,7 @@ func (btail *ΔTail) Update(δZ *zodb.EventCommit) []ΔTree {
// entries in .δZtail into account.
// func (btail *ΔTail) update()
// Get
At
returns root[key] as of @at database state plus revision that changed it.
// Get returns root[key] as of @at database state plus revision that changed it.
//
// if revExact=False - rev is upper estimate for the revision.
//
...
...
@@ -241,7 +241,7 @@ func (btail *ΔTail) Update(δZ *zodb.EventCommit) []ΔTree {
//
// XXX at must ∈ (tail, head] XXX [tail ?
// XXX key must be tracked?
func
(
btail
*
ΔTail
)
Get
At
(
root
*
Tree
,
key
Key
,
at
zodb
.
Tid
)
(
value
Value
,
ok
bool
,
rev
zodb
.
Tid
,
revExact
bool
)
{
func
(
btail
*
ΔTail
)
Get
(
root
*
Tree
,
key
Key
,
at
zodb
.
Tid
)
(
value
Value
,
ok
bool
,
rev
zodb
.
Tid
,
revExact
bool
)
{
// XXX key not tracked -> panic
// XXX at not ∈ (tail, head] -> panic
...
...
wcfs/δftail.go
View file @
ee79a1ad
...
...
@@ -105,7 +105,7 @@ func (δf *ΔFTail) Update(δZ *zodb.EventCommit) ΔFentry {
func
(
f
*
BigFile
)
LastBlkRev
(
blk
int64
,
at
zodb
.
Tid
)
(
_
zodb
.
Tid
,
exact
bool
)
{
δf
:=
f
.
head
.
bfdir
.
δFtail
zblkOid
,
ok
,
tabRev
,
tabRevExact
:=
δf
.
ΔTail
.
Get
At
(
f
.
zfile
.
blktab
,
blk
,
at
)
zblkOid
,
ok
,
tabRev
,
tabRevExact
:=
δf
.
ΔTail
.
Get
(
f
.
zfile
.
blktab
,
blk
,
at
)
// block was removed
// XXX or not in tracked set?
...
...
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