Browse Source

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 <kangh@us.ibm.com>
Hui Kang 8 years ago
parent
commit
7fffd8b827
1 changed files with 1 additions and 1 deletions
  1. 1 1
      clientv3/concurrency/stm.go

+ 1 - 1
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 {