mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
mvcc: keep 64-bit alignment in "store" struct
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
This commit is contained in:
parent
b5aa46486b
commit
f279bfb775
@ -77,12 +77,12 @@ type store struct {
|
||||
ReadView
|
||||
WriteView
|
||||
|
||||
cfg StoreConfig
|
||||
|
||||
// consistentIndex caches the "consistent_index" key's value. Accessed
|
||||
// through atomics so must be 64-bit aligned.
|
||||
consistentIndex uint64
|
||||
|
||||
cfg StoreConfig
|
||||
|
||||
// mu read locks for txns and write locks for non-txn store changes.
|
||||
mu sync.RWMutex
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user