Commit 88b0106e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 6070497f
......@@ -328,38 +328,14 @@ func (δFtail *ΔFtail) rebuild1IfNeeded(foid zodb.Oid) (vδE []_ΔFileEpoch, he
δBtail := δFtail.δBtail
// XXX indicate in-progress rebuild via job
δFtail.mu.Unlock()
// err = δftail._rebuild1(foid, δBtail.ΔZtail(), δBtail.DB())
vδE, err = vδEBuild(foid, δBtail.ΔZtail(), δBtail.DB())
δFtail.mu.Lock()
δftail.vδE = vδE
}
return vδE, δftail.root, err
return δftail.vδE, δftail.root, err
}
/* XXX kill
// _rebuild1 rebuilds vδE.
//
// XXX -> redo to just return built vδE (vδEBuild)
// XXX must be called with δftail.mu locked.
func (δftail *_ΔFileTail) _rebuild1(foid zodb.Oid, δZtail *zodb.ΔTail, db *zodb.DB) (err error) {
defer xerr.Contextf(&err, "file<%s>: rebuild", foid)
// // XXX locking
if δftail.vδE != nil {
panic("rebuild1: vδE != nil")
}
vδE, err := vδEBuild(foid, δZtail, db)
if err != nil {
return err
}
δftail.vδE = vδE
return nil
}
*/
// Update updates δFtail given raw ZODB changes.
//
// It returns change in files space that corresponds to δZ.
......
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