diff --git a/blockstore/badger/blockstore.go b/blockstore/badger/blockstore.go index 2c00f424077..dbdaad20d3b 100644 --- a/blockstore/badger/blockstore.go +++ b/blockstore/badger/blockstore.go @@ -84,11 +84,11 @@ const ( // operation calls after Close() has returned, but it may not happen for // operations in progress. Those are likely to fail with a different error. type Blockstore struct { - DB *badger.DB - - // state is guarded by atomic. + // state is accessed atomically state int64 + DB *badger.DB + prefixing bool prefix []byte prefixLen int