Commit 949d42da authored by Kirill Smelkov's avatar Kirill Smelkov

go/zodb: IStorage: Fix thinko in Head guarantee

Julien Muchembled notices that strictly speaking Head could return tid
that it receives during its call, not strictly as observed before the
call. In other words for which range might be returned it is like below:

           ...\\\\\\\\\\\↓      ↓////////////...
        ──────────────────────────────────────────
               <head call>      <sync call>

Fixes 151d8b79 (go/zodb: LastTid -> Sync + Head).

[1] https://github.com/zopefoundation/ZODB/pull/307#discussion_r436881665
parent 3d909114
......@@ -341,7 +341,7 @@ type IStorage interface {
// Head returns ID of last committed transaction.
//
// Returned head is ID of last committed transaction as observed from
// some time _before_ Head call was made. In particular for
// some time _before_ Head call returns. In particular for
// client-sever case, Head can return cached view of storage that was
// learned some time ago.
//
......
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