vitess-gh/web
Dirkjan Bussink ed9bf2427b
Add tracking session state changes for transaction start (#11061)
* Add tracking session state changes for transaction start

This logic depends on the custom option that PlanetScale as in it's
MySQL fork to get the current committed GTID at the start of a
transaction snapshot.

With this GTID, we can optimize vreplication to avoid having to lock
tables around vreplication operations.

See
9fa67ec3eb
for the change in MySQL that is published in our fork.

The change here allows getting back this value through any query
operation that might start a transaction.

Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>

* Use 'session_track_gtids = START_GTID' where possible, and avoid LOCK tables while still getting a transaction consistent GTID

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Co-authored-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
2022-08-22 14:39:34 +03:00
..
orchestrator
vtadmin Add tracking session state changes for transaction start (#11061) 2022-08-22 14:39:34 +03:00
vtctld2 Cleanup usage of go.rice in favor of go:embed (#10956) 2022-08-09 14:15:19 +05:30