Skip to content

Commit 7d0cdf5

Browse files
committed
fix: upgrade seata version, BranchRegister func need a argument "asyncCommit", default true
1 parent ee695c8 commit 7d0cdf5

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/go-playground/assert/v2 v2.0.1
77
github.com/golang/protobuf v1.4.3
88
github.com/google/go-cmp v0.5.2
9-
github.com/opentrx/seata-golang/v2 v2.0.6-rc1
9+
github.com/opentrx/seata-golang/v2 v2.0.7-rc1
1010
github.com/patrickmn/go-cache v2.1.0+incompatible
1111
github.com/pingcap/parser v0.0.0-20200424075042-8222d8b724a4
1212
github.com/pkg/errors v0.9.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go
307307
github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74=
308308
github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
309309
github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
310-
github.com/opentrx/seata-golang/v2 v2.0.6-rc1 h1:IoMlDB9OeB91Fkc+JR5PU5QJlJieFvc3PbbRbnEj3Bs=
311-
github.com/opentrx/seata-golang/v2 v2.0.6-rc1/go.mod h1:gVGvCWHjTS+QVsq0A2iBLbQPW9PkTUheJ5Nnlyg6Dog=
310+
github.com/opentrx/seata-golang/v2 v2.0.7-rc1 h1:y4+rNw/TTFRZyhoy5u06IZCXkhSbDip/jTJU7OeslZ8=
311+
github.com/opentrx/seata-golang/v2 v2.0.7-rc1/go.mod h1:lCcz2f880/nnVPXYHO8YQOPHKeSrK2qBEXS7YFBJJB4=
312312
github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA=
313313
github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw=
314314
github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4=

transaction.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func (tx *mysqlTx) register() (int64, error) {
122122
}
123123
branchID, err = rm.GetResourceManager().BranchRegister(context.Background(),
124124
tx.mc.ctx.xid, tx.mc.cfg.DBName, apis.AT, applicationData,
125-
strings.Join(tx.mc.ctx.lockKeys, ";"))
125+
strings.Join(tx.mc.ctx.lockKeys, ";"), true)
126126
if err == nil {
127127
break
128128
}

0 commit comments

Comments
 (0)