mvcc: keep 64-bit alignment in "store" struct

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
This commit is contained in:
Gyuho Lee 2019-08-15 13:01:32 -07:00
parent b5aa46486b
commit f279bfb775

View File

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