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
2b918c95
Commit
2b918c95
authored
Apr 16, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2a2db135
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
wcfs/internal/xbtree/δbtail.go
wcfs/internal/xbtree/δbtail.go
+3
-2
wcfs/δftail.go
wcfs/δftail.go
+1
-1
No files found.
wcfs/internal/xbtree/δbtail.go
View file @
2b918c95
...
...
@@ -221,12 +221,13 @@ func (btail *ΔTail) Update(δZ *zodb.EventCommit) ΔB {
}
}
δB
:=
ΔB
{
Rev
:
δZ
.
Tid
,
Change
:
make
(
map
[
*
Tree
]
map
[
Key
]
Value
)}
if
len
(
δZByRoot
)
==
0
{
return
nil
// tracked set not changed
return
δB
// tracked set not changed
}
// XXX stub to get file.size invalidation working
δB
:=
ΔB
{
Rev
:
δZ
.
Tid
,
Change
:
make
(
map
[
*
Tree
]
map
[
Key
]
Value
)}
for
root
:=
range
δZByRoot
{
δt
,
ok
:=
δB
.
Change
[
root
]
if
!
ok
{
...
...
wcfs/δftail.go
View file @
2b918c95
...
...
@@ -100,7 +100,7 @@ func (δFtail *ΔFTail) Update(δZ *zodb.EventCommit) ΔF {
δfile
=
make
(
SetI64
)
δF
.
Change
[
file
]
=
δfile
}
for
blk
/*, zblk*/
:=
range
δt
.
KV
{
for
blk
/*, zblk*/
:=
range
δt
{
// FIXME stub - need to take both keys and zblk changes into account
// XXX document, and in particular how to include atTail
δfile
.
Add
(
blk
)
...
...
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