From 43838f7c95bfddc9031c66fc474c70c51fc432db Mon Sep 17 00:00:00 2001 From: Kirill Smelkov <kirr@nexedi.com> Date: Mon, 4 Mar 2019 20:23:11 +0300 Subject: [PATCH] . --- go/zodb/db.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/go/zodb/db.go b/go/zodb/db.go index 53149ae6..628141ce 100644 --- a/go/zodb/db.go +++ b/go/zodb/db.go @@ -139,13 +139,13 @@ func NewDB(stor IStorage) *DB { return db } -// shutdown mark db no longer operational due to reason. +// shutdown marks db no longer operational due to reason. // // It serves both explicit Close, or shutdown triggered due to error received -// by watcher. +// by watcher. Only the first shutdown call has the effect. func (db *DB) shutdown(reason error) { db.downOnce.Do(func() { - db.downErr = reason // XXX err ctx ? + db.downErr = reason close(db.down) db.stor.DelWatch(db.watchq) -- 2.30.9