Commit 847e447a authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent eb34c5ba
...@@ -220,6 +220,8 @@ func (δBtail *ΔBtail) Head() zodb.Tid { return δBtail.δZtail.Head() } ...@@ -220,6 +220,8 @@ func (δBtail *ΔBtail) Head() zodb.Tid { return δBtail.δZtail.Head() }
func (δBtail *ΔBtail) Tail() zodb.Tid { return δBtail.δZtail.Tail() } func (δBtail *ΔBtail) Tail() zodb.Tid { return δBtail.δZtail.Tail() }
// ---- Track/rebuild/Update/Forget ----
// Track adds tree path to tracked set. // Track adds tree path to tracked set.
// //
// path[0] signifies tree root. // path[0] signifies tree root.
...@@ -745,6 +747,8 @@ func (δTtail *_ΔTtail) forgetPast(revCut zodb.Tid) { ...@@ -745,6 +747,8 @@ func (δTtail *_ΔTtail) forgetPast(revCut zodb.Tid) {
} }
// ---- queries ----
// GetAt tries to retrieve root[key]@at from δBtail data. // GetAt tries to retrieve root[key]@at from δBtail data.
// //
// If δBtail has δB entry that covers root[key]@at, corresponding value // If δBtail has δB entry that covers root[key]@at, corresponding value
...@@ -866,6 +870,9 @@ func (δBtail *ΔBtail) SliceByRootRev(root zodb.Oid, lo, hi zodb.Tid) /*readonl ...@@ -866,6 +870,9 @@ func (δBtail *ΔBtail) SliceByRootRev(root zodb.Oid, lo, hi zodb.Tid) /*readonl
} }
// ----------------------------------------
// ΔZtail returns raw ZODB changes accumulated in δBtail so far. // ΔZtail returns raw ZODB changes accumulated in δBtail so far.
// //
// the caller must not modify returned δZtail. // the caller must not modify returned δZtail.
......
...@@ -193,6 +193,8 @@ func (δFtail *ΔFtail) Head() zodb.Tid { return δFtail.δBtail.Head() } ...@@ -193,6 +193,8 @@ func (δFtail *ΔFtail) Head() zodb.Tid { return δFtail.δBtail.Head() }
func (δFtail *ΔFtail) Tail() zodb.Tid { return δFtail.δBtail.Tail() } func (δFtail *ΔFtail) Tail() zodb.Tid { return δFtail.δBtail.Tail() }
// ---- Track/rebuild/Update/Forget ----
// Track associates file[blk]@head with tree path and zblk object. // Track associates file[blk]@head with tree path and zblk object.
// //
// Path root becomes associated with the file, and the path and zblk object become tracked. // Path root becomes associated with the file, and the path and zblk object become tracked.
...@@ -563,6 +565,8 @@ func (δftail *_ΔFileTail) forgetPast(revCut zodb.Tid) { ...@@ -563,6 +565,8 @@ func (δftail *_ΔFileTail) forgetPast(revCut zodb.Tid) {
} }
} }
// ---- queries ----
// TODO if needed // TODO if needed
// func (δFtail *ΔFtail) SliceByRev(lo, hi zodb.Tid) /*readonly*/ []ΔF // func (δFtail *ΔFtail) SliceByRev(lo, hi zodb.Tid) /*readonly*/ []ΔF
......
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