зеркало из https://github.com/github/vitess-gh.git
7933b66e43
A new SingleDb flag has been added to Begin, which would survive through the Session. If set, any transaction that exceeds a single shard will be failed. VTGate acquires a command line flag: transaction_mode, which can be single, multi or 2pc. In single mode, it will fail Begins that request multi-shard. In multi mode, it will fail commits that request 2pc. In 2pc mode, everything will be allowed. The per-request flags specify what the app wants, and the vtgate flags specify what it allows. * 2pc: Go and python clients For Go, the transaction mode settings are supported through the context. This means that it will only work with go1.8. For Python, it's a cursor constructor parameter. * 2pc: end-to-end test |
||
---|---|---|
.. | ||
index.go | ||
plugin_etcdtopo.go | ||
plugin_fakezk.go | ||
plugin_grpctabletconn.go | ||
plugin_grpcvtgateservice.go | ||
plugin_influxdbbackend.go | ||
plugin_zktopo.go | ||
status.go | ||
vtgate.go |