vitess-gh/go/cmd/vtgate
sougou 7933b66e43 2pc: end-to-end (#2335)
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
2016-12-05 16:28:44 -08:00
..
index.go Redirect to /debug/status instead of 404 Not Found. 2016-03-02 21:15:38 -08:00
plugin_etcdtopo.go
plugin_fakezk.go
plugin_grpctabletconn.go
plugin_grpcvtgateservice.go
plugin_influxdbbackend.go
plugin_zktopo.go
status.go Adding vschema summary in vtgate's statusz page. 2016-10-05 14:22:51 -07:00
vtgate.go 2pc: end-to-end (#2335) 2016-12-05 16:28:44 -08:00