Commit 20a4649a authored by Adin Schmahmann's avatar Adin Schmahmann Committed by Steven Allen

update datastore interface

parent ed92a705
......@@ -388,6 +388,16 @@ func (fs *Datastore) Put(key datastore.Key, value []byte) error {
return err
}
func (fs *Datastore) Sync(prefix datastore.Key) error {
fs.shutdownLock.RLock()
defer fs.shutdownLock.RUnlock()
if fs.shutdown {
return ErrClosed
}
return nil
}
func (fs *Datastore) doOp(oper *op) error {
switch oper.typ {
case opPut:
......
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