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

Default stm isolation level is serializable snapshot isolation
release-3.3
Xiang Li 2017-06-25 18:50:32 -07:00 committed by GitHub
commit 703663d1f6
1 changed files with 1 additions and 1 deletions

View File

@ -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 {