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
c04a8580
Commit
c04a8580
authored
Apr 22, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
52e73d14
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
wcfs/wcfs.go
wcfs/wcfs.go
+1
-0
wcfs/δbtail.go
wcfs/δbtail.go
+2
-6
No files found.
wcfs/wcfs.go
View file @
c04a8580
...
...
@@ -821,6 +821,7 @@ retry:
toinvalidate
[
file
]
=
finv
}
// XXX use δfile blocks -> finv.blkmap
// TODO invalidate .size only if key >= maxkey was changed
finv
.
size
=
true
file
.
δtail
.
Append
(
δF
.
Rev
,
δfile
.
Elements
())
...
...
wcfs/δbtail.go
View file @
c04a8580
...
...
@@ -211,7 +211,7 @@ func (δBtail *ΔBtail) Track(path []Node) { // XXX Tree|Bucket; path[0] = root
func
(
δBtail
*
ΔBtail
)
Update
(
δZ
*
zodb
.
EventCommit
)
ΔB
{
δBtail
.
δZtail
.
Append
(
δZ
.
Tid
,
δZ
.
Changev
)
// {} root -> []oid changed under that root
// {} root -> []oid changed under that root
in tracked set
δZByRoot
:=
map
[
*
Tree
][]
zodb
.
Oid
{}
// XXX -> map[*Tree]SetOid ?
for
_
,
δ
:=
range
δZ
.
Changev
{
roots
,
ok
:=
δBtail
.
trackIdx
[
δ
]
...
...
@@ -225,17 +225,13 @@ func (δBtail *ΔBtail) Update(δZ *zodb.EventCommit) ΔB {
δB
:=
ΔB
{
Rev
:
δZ
.
Tid
,
Change
:
make
(
map
[
*
Tree
]
map
[
Key
]
Value
)}
if
len
(
δZByRoot
)
==
0
{
return
δB
// tracked set not changed
}
// XXX stub to get file.size invalidation working
for
root
:=
range
δZByRoot
{
δt
,
ok
:=
δB
.
Change
[
root
]
if
!
ok
{
δt
=
make
(
map
[
Key
]
Value
)
δB
.
Change
[
root
]
=
δt
}
// XXX stub to get file.size invalidation working
// TODO update δt
}
return
δB
...
...
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