You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/ipn/store
Joe Tsai 2ad040db3b ipn/store: improve FileStore.WriteState atomicity
If an error occurs with FileStore.WriteState, it should not record
the provided value as this results in an inconsistency between
what is cached in memory and what is stored on disk.

Also, update the documentation of StateStore.ReadState
to indicate that the returned value should be treated as immutable.
This property is assumed by the fact that FileStore.ReadState
returns the same slice of bytes for repeated calls to the same key.

Updates #cleanup

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
2 years ago
..
awsstore ipn/store/awsstore: persist state with intelligent tiering 3 years ago
kubestore cmd/k8s-operator,ipn/store/kubestore: patch secrets instead of updating 2 years ago
mem all: use Go 1.20's bytes.Clone 3 years ago
stores.go ipn/store: improve FileStore.WriteState atomicity 2 years ago
stores_linux.go all: update copyright and license headers 3 years ago
stores_test.go all: update copyright and license headers 3 years ago