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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
a1b94828
Commit
a1b94828
authored
Apr 05, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
6554ee97
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
wcfs/internal/xbtree/δbtail.go
wcfs/internal/xbtree/δbtail.go
+1
-1
wcfs/misc.go
wcfs/misc.go
+0
-3
wcfs/δftail.go
wcfs/δftail.go
+9
-1
No files found.
wcfs/internal/xbtree/δbtail.go
View file @
a1b94828
...
...
@@ -250,7 +250,7 @@ func (btail *ΔTail) Update(δZ *zodb.EventCommit) (δB ΔRevEntry) {
// func (btail *ΔTail) update()
// XXX -> Get(root, key, at) -> (valueOid, rev) ?
func
(
btail
*
ΔTail
)
LastRevOf
(
root
Tree
,
key
Key
,
at
zodb
.
Tid
)
(
_
zodb
.
Tid
,
exact
bool
)
{
func
(
btail
*
ΔTail
)
LastRevOf
(
root
*
Tree
,
key
Key
,
at
zodb
.
Tid
)
(
_
zodb
.
Tid
,
exact
bool
)
{
/*
lastRevOf = btail.lastRevOf[root]
rev = lastRevOf[key]
...
...
wcfs/misc.go
View file @
a1b94828
...
...
@@ -42,9 +42,6 @@ import (
"lab.nexedi.com/kirr/neo/go/transaction"
"lab.nexedi.com/kirr/neo/go/zodb"
"lab.nexedi.com/kirr/neo/go/zodb/btree"
"./internal/xbtree"
)
// ---- FUSE ----
...
...
wcfs/δftail.go
View file @
a1b94828
...
...
@@ -20,6 +20,14 @@
package
main
// ΔFtail - merge btree.ΔTail with history of ZBlk
import
(
"fmt"
"lab.nexedi.com/kirr/neo/go/zodb"
"lab.nexedi.com/kirr/neo/go/zodb/btree"
"./internal/xbtree"
)
// ΔFTail is like btree.ΔTail but additionally tracks tree-root -> file relation and
// takes ZBlk history into account.
...
...
@@ -88,7 +96,7 @@ func (δf *ΔFTail) Update(δZ *zodb.EventCommit) ΔFentry {
// XXX ZBigFile.LoadBlk(blk) -> blkdata, rev
func
(
δf
*
ΔFTail
)
LastRevOf
(
file
*
BigFile
,
blk
int64
,
at
zodb
.
Tid
)
(
_
zodb
.
Tid
,
exact
bool
)
{
// revision of when blktab[blk] entry changed last.
treeKeyRev
:=
δf
.
ΔTail
.
LastRevOf
(
file
.
zfile
.
blktab
,
blk
,
at
)
// XXX activate?
treeKeyRev
,
exact
:=
δf
.
ΔTail
.
LastRevOf
(
file
.
zfile
.
blktab
,
blk
,
at
)
// XXX activate?
// blktab[blk] is only a pointer (to ZBlk) and ZBlk could itself have
// been changing after treeKeyRev. We have to check for 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