fix: make sure atomic 64bit fields are 64bit aligned

Otherwise, this won't work on 32bit ARM.
This commit is contained in:
Steven Allen 2021-03-11 20:10:39 -08:00
parent d0243904f7
commit 1c490f3fda

View File

@ -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