Commit f3eafccb authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 24c131a6
// Copyright (C) 2018 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
// Copyright (C) 2018-2021 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
// it under the terms of the GNU General Public License version 3, or (at your
......@@ -36,10 +36,7 @@ import (
//
// XXX ok to reuse zodb.OpError for errors? or better it should be storage.OpError?
type Backend interface {
// LastTid should return the id of the last committed transaction.
//
// XXX same as in zodb.IStorageDriver
// XXX +viewAt ?
// LastTid should return the ID of the last committed transaction.
LastTid(ctx context.Context) (zodb.Tid, error)
// LastOid should return the max object id stored.
......@@ -48,6 +45,7 @@ type Backend interface {
// Load, similarly to zodb.IStorageDriver.Load should load object data addressed by xid.
Load(ctx context.Context, xid zodb.Xid) (*proto.AnswerObject, error)
// Close should release backend resources.
Close() error
}
......
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