From 1c490f3fda94752c319544598b5deebc723ebffa Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 11 Mar 2021 20:10:39 -0800 Subject: [PATCH] fix: make sure atomic 64bit fields are 64bit aligned Otherwise, this won't work on 32bit ARM. --- blockstore/badger/blockstore.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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