Merge pull request #5794 from filecoin-project/fix/atomic-first
fix: make sure atomic 64bit fields are 64bit aligned
This commit is contained in:
commit
5f80869fe0
@ -85,11 +85,11 @@ const (
|
|||||||
// operation calls after Close() has returned, but it may not happen for
|
// operation calls after Close() has returned, but it may not happen for
|
||||||
// operations in progress. Those are likely to fail with a different error.
|
// operations in progress. Those are likely to fail with a different error.
|
||||||
type Blockstore struct {
|
type Blockstore struct {
|
||||||
DB *badger.DB
|
// state is accessed atomically
|
||||||
|
|
||||||
// state is guarded by atomic.
|
|
||||||
state int64
|
state int64
|
||||||
|
|
||||||
|
DB *badger.DB
|
||||||
|
|
||||||
prefixing bool
|
prefixing bool
|
||||||
prefix []byte
|
prefix []byte
|
||||||
prefixLen int
|
prefixLen int
|
||||||
|
Loading…
Reference in New Issue
Block a user