Commit e1b05139 authored by Kirill Smelkov's avatar Kirill Smelkov

go/zodb: Loader: Document that loaded buffer must not be modified

The reason for this is that the buffer can be shared with other loaders
via cache.
parent 1d8f62c2
...@@ -254,6 +254,8 @@ type Loader interface { ...@@ -254,6 +254,8 @@ type Loader interface {
// - if there is data to load: buf is non-empty, serial indicates // - if there is data to load: buf is non-empty, serial indicates
// transaction which matched xid criteria and err=nil. // transaction which matched xid criteria and err=nil.
// //
// caller must not modify buf memory.
//
// otherwise buf=nil, serial=0 and err is *OpError with err.Err // otherwise buf=nil, serial=0 and err is *OpError with err.Err
// describing the error cause: // describing the error cause:
// //
......
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