mirror of
https://github.com/hashicorp/vault.git
synced 2026-03-20 09:37:16 -04:00
* storage/gcs: fix race condition in releasing lock Previously we were deleting a lock without first checking if the lock we were deleting was our own. There existed a small period of time where vault-0 would lose leadership and vault-1 would get leadership. vault-0 would delete the lock key while vault-1 would write it. If vault-0 won, there'd be another leader election, etc. This fixes the race by using a CAS operation instead. * storage/gcs: properly break out of loop during stop * storage/spanner: properly break out of loop during stop |
||
|---|---|---|
| .. | ||
| spanner.go | ||
| spanner_ha.go | ||
| spanner_ha_test.go | ||
| spanner_test.go | ||