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
e738a68e
Commit
e738a68e
authored
Aug 17, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b2240826
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wcfs/internal/zdata/δftail.go
wcfs/internal/zdata/δftail.go
+2
-2
No files found.
wcfs/internal/zdata/δftail.go
View file @
e738a68e
...
...
@@ -404,7 +404,7 @@ func (δFtail *ΔFtail) Update(δZ *zodb.EventCommit) (_ ΔF, err error) {
}
// TODO invalidate .size only if key >= maxkey was changed (size increase),
// or if on the other hand maxkey was deleted (size decrese).
// or if on the other hand maxkey was deleted (size decre
a
se).
//
// XXX currently we invalidate size on any topology change.
δfile
.
Size
=
true
...
...
@@ -512,7 +512,7 @@ func (δftail *_ΔFileTail) forgetPast(revCut zodb.Tid) {
}
// vδE[:icut] should be forgotten
if
icut
>
0
{
// XXX workarond for ΔFtail.ForgetPast calling forgetPast on all files
if
icut
>
0
{
// XXX workaro
u
nd for ΔFtail.ForgetPast calling forgetPast on all files
δftail
.
vδE
=
append
([]
_ΔFileEpoch
{},
δftail
.
vδE
[
icut
:
]
...
)
}
}
...
...
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