Commit 9c4031b6 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent d09b80f2
...@@ -74,16 +74,13 @@ func (z *zeo) Sync(ctx context.Context) (head zodb.Tid, err error) { ...@@ -74,16 +74,13 @@ func (z *zeo) Sync(ctx context.Context) (head zodb.Tid, err error) {
} }
// Load implements zodb.IStorageDriver. // Load implements zodb.IStorageDriver.
func (z *zeo) Load(ctx context.Context, xid zodb.Xid) (*mem.Buf, zodb.Tid, error) { func (z *zeo) Load(ctx context.Context, xid zodb.Xid) (buf *mem.Buf, serial zodb.Tid, err error) {
// defer func() ... defer func() {
buf, serial, err := z._Load(ctx, xid) if err != nil {
if err != nil { err = &zodb.OpError{URL: z.URL(), Op: "load", Args: xid, Err: err}
err = &zodb.OpError{URL: z.URL(), Op: "load", Args: xid, Err: err} }
} }()
return buf, serial, err
}
func (z *zeo) _Load(ctx context.Context, xid zodb.Xid) (*mem.Buf, zodb.Tid, error) {
rpc := z.rpc("loadBefore") rpc := z.rpc("loadBefore")
enc := z.link.enc enc := z.link.enc
xres, err := rpc.call(ctx, enc.Oid(xid.Oid), enc.Tid(xid.At+1)) // XXX at2Before xres, err := rpc.call(ctx, enc.Oid(xid.Oid), enc.Tid(xid.At+1)) // XXX at2Before
......
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