Commit 4a0471de authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 8a2e57c5
......@@ -433,8 +433,6 @@ func (δBtail *ΔBtail) rebuildAll() (err error) {
if err != nil {
return err
}
// delete(δBtail.trackNewRoots, root)
// δBtail.rebuild1(root) // XXX err
}
return nil
......@@ -590,27 +588,6 @@ func (δTtail *_ΔTtail) _runRebuildJob(root zodb.Oid, δBtail *ΔBtail) (err er
return err
}
/*
// rebuild1 rebuilds ΔBtail for single root.
// XXX inline into rebuildAll ?
func (δBtail *ΔBtail) rebuild1(root zodb.Oid) error {
// XXX locking
δTtail := δBtail.byRoot[root] // must be there
trackNew := δTtail.trackNew
δTtail.trackNew = blib.PPTreeSubSet{}
vδTnew, δtrackSet, err := vδTBuild(root, trackNew, δBtail.δZtail, δBtail.db)
if err != nil {
return err
}
// vδT <- vδTnew RCU; trackSet += δtrackSet
δTtail.vδT = vδTClone(δTtail.vδT)
δrevSet := vδTMergeInplace(&δTtail.vδT, vδTnew)
δBtail.trackSet.UnionInplace(δtrackSet)
δBtail._vδBroots_Update(root, δrevSet)
return nil
}
*/
// XXX move vδTBuild/vδTBuild1/Merge,Widen to after Update?
......
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