Commit c31d9dbe authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent dc258a2d
...@@ -310,7 +310,7 @@ type hwaiter struct { ...@@ -310,7 +310,7 @@ type hwaiter struct {
// //
// Must be called db.mu released. // Must be called db.mu released.
func (db *DB) headWait(ctx context.Context, at Tid) (err error) { func (db *DB) headWait(ctx context.Context, at Tid) (err error) {
defer xerr.Contextf(&err, "wait head ≥ %s", at) defer xerr.Contextf(&err, "wait head ≥ @%s", at)
// precheck if db is already down -> error even if at is under coverage // precheck if db is already down -> error even if at is under coverage
if ready(db.down) { if ready(db.down) {
......
...@@ -199,6 +199,7 @@ func (δtail *ΔTail) ForgetPast(revCut Tid) { ...@@ -199,6 +199,7 @@ func (δtail *ΔTail) ForgetPast(revCut Tid) {
δtail.tail = revCut δtail.tail = revCut
} }
// XXX -> RevAt ?
// LastRevOf tries to return what was the last revision that changed id as of at database state. // LastRevOf tries to return what was the last revision that changed id as of at database state.
// //
// Depending on current information in δtail it returns either exact result, or // Depending on current information in δtail it returns either exact result, or
......
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