vault: put uint32 at top of struct to avoid alignment issues
This commit is contained in:
parent
7d03852f7c
commit
05f86ca957
|
@ -22,13 +22,15 @@ import (
|
|||
// It ensures that only one rollback operation is in-flight at any given
|
||||
// time within a single seal/unseal phase.
|
||||
type RollbackManager struct {
|
||||
// NOTE: This must always be at the top of the struct to avoid
|
||||
// atomic alignment issues. Go bug.
|
||||
running uint32
|
||||
|
||||
Logger *log.Logger
|
||||
Mounts *MountTable
|
||||
Router *Router
|
||||
|
||||
Period time.Duration // time between rollback calls
|
||||
|
||||
running uint32
|
||||
}
|
||||
|
||||
// Start starts the rollback manager. This will block until Stop is called
|
||||
|
|
Loading…
Reference in New Issue