6dcecbdfda
* 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 |
||
---|---|---|
.. | ||
gcs.go | ||
gcs_ha.go | ||
gcs_ha_test.go | ||
gcs_test.go |