Commit 65c42681 authored by Kirill Smelkov's avatar Kirill Smelkov

go/zodb: Document that Tid(0) is invalid while Oid(0) is valid.

Oid(0) represents root database object. We cannot change this.
parent 97214cb9
......@@ -78,6 +78,8 @@ import (
// This way tid can also be used to specify whole database state constructed
// by all cumulated transaction changes from database beginning up to, and
// including, transaction specified by tid.
//
// 0 is invalid Tid.
type Tid uint64
// ZODB/py defines maxtid to be max signed int64 since Jun 7 2016:
......@@ -93,6 +95,8 @@ const TidMax Tid = 1<<63 - 1 // 0x7fffffffffffffff
// The combination of object identifier and particular transaction (serial)
// uniquely addresses corresponding data record.
//
// 0 is valid Oid and represents root database object.
//
// See also: Xid.
type Oid uint64
......
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