Commit e738a68e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b2240826
...@@ -404,7 +404,7 @@ func (δFtail *ΔFtail) Update(δZ *zodb.EventCommit) (_ ΔF, err error) { ...@@ -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), // 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 decrease).
// //
// XXX currently we invalidate size on any topology change. // XXX currently we invalidate size on any topology change.
δfile.Size = true δfile.Size = true
...@@ -512,7 +512,7 @@ func (δftail *_ΔFileTail) forgetPast(revCut zodb.Tid) { ...@@ -512,7 +512,7 @@ func (δftail *_ΔFileTail) forgetPast(revCut zodb.Tid) {
} }
// vδE[:icut] should be forgotten // vδE[:icut] should be forgotten
if icut > 0 { // XXX workarond for ΔFtail.ForgetPast calling forgetPast on all files if icut > 0 { // XXX workaround for ΔFtail.ForgetPast calling forgetPast on all files
δftail.vδE = append([]_ΔFileEpoch{}, δftail.vδE[icut:]...) δftail.vδE = append([]_ΔFileEpoch{}, δftail.vδE[icut:]...)
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment