From 7fffd8b827941ec1c88cee9ac6251a1b2f31e2e5 Mon Sep 17 00:00:00 2001 From: Hui Kang Date: Thu, 22 Jun 2017 22:00:06 -0400 Subject: [PATCH] concurrency: comment the default stm isolation level is serializable snapshot Default stm isolation level is serializable snapshot isolation, which is different than snapshot isolation (SI) Signed-off-by: Hui Kang --- clientv3/concurrency/stm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientv3/concurrency/stm.go b/clientv3/concurrency/stm.go index bba058665..aadfc508e 100644 --- a/clientv3/concurrency/stm.go +++ b/clientv3/concurrency/stm.go @@ -85,7 +85,7 @@ func WithPrefetch(keys ...string) stmOption { return func(so *stmOptions) { so.prefetch = append(so.prefetch, keys...) } } -// NewSTM initiates a new STM instance, using snapshot isolation by default. +// NewSTM initiates a new STM instance, using serializable snapshot isolation by default. func NewSTM(c *v3.Client, apply func(STM) error, so ...stmOption) (*v3.TxnResponse, error) { opts := &stmOptions{ctx: c.Ctx()} for _, f := range so {