Commit Graph

27 Commits (e024960c745f0a464cb081d04765d93f94deaba0)

Author SHA1 Message Date
James Bardin 9bf9280c03
Merge pull request #17431 from oscr/use-seekstart
8 years ago
James Bardin a84b4a669a use the open state file for refresh when possible
8 years ago
Oscar Utbult 7434cd0a81 Use io.SeekStart instead of deprecated os.SEEK_SET
8 years ago
Martin Atkins 4d53eaa6df state: more robust handling of state Serial
9 years ago
James Bardin 4866f35645 add mutexes to Local, Backup, and InmemState
9 years ago
James Bardin a4283d23f6 fix windows locking
9 years ago
James Bardin ec00564be6 Clean up LockInfo and LockError and use them
9 years ago
James Bardin 08cff7cc13 have LocalState check Lock ID on Unlock
9 years ago
James Bardin 4f0c465187 make command tests pass with new state.Locker
9 years ago
James Bardin 200c8de4e9 Update the state.Locker interface
9 years ago
Mitchell Hashimoto a7cfb8062b
state: just style changes in the code itself (newlines, moving methods)
10 years ago
James Bardin 0c1b138719 Add state locking during backend init
10 years ago
James Bardin 14d965722e Use single state.LockInfo struct
10 years ago
James Bardin e92559f518 Cleanup state file during Unlock
10 years ago
James Bardin a2b5811f50 Remove "expires" from lock info.
10 years ago
James Bardin 1646310e68 Allow a non-existent state file
10 years ago
James Bardin 3fdcbda3aa Switch from Path to PathOut on LocalState.written
10 years ago
James Bardin 8f7f1917f2 Remove state file data when writing a nil state
10 years ago
James Bardin 10f6d7f30f Add locking for s3 state
10 years ago
James Bardin 6162cde6ff Add basic local state locking
10 years ago
Mitchell Hashimoto cc8e6b6331 state: deep copies are required
12 years ago
Mitchell Hashimoto c2bf600603 state: only change serial if changed
12 years ago
Mitchell Hashimoto 3bf59183b8 state: InmemState
12 years ago
Mitchell Hashimoto 4ec63bc2ef command: deal with plan states
12 years ago
Mitchell Hashimoto 5c356f35b9 state: LocalState supports alternate output path
12 years ago
Mitchell Hashimoto 34864a64a5 state: LocalState allows file to not exist
12 years ago
Mitchell Hashimoto 1f7ddc30fe state: a bunch of state stuff
12 years ago