浏览代码

Merge pull request #8163 from huikang/stm-comment-update

Default stm isolation level is serializable snapshot isolation
Xiang Li 8 年之前
父节点
当前提交
703663d1f6
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 {