MCPcopy Create free account
hub / github.com/apecloud/myduckserver / getGtidEnabled

Function getGtidEnabled

binlogreplication/binlog_replication_test.go:822–831  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

820}
821
822func getGtidEnabled() bool {
823 gtidEnabled := strings.ToLower(os.Getenv("GTID_ENABLED"))
824 if gtidEnabled == "" {
825 return true
826 }
827 if gtidEnabled != "true" && gtidEnabled != "false" {
828 panic(fmt.Sprintf("GTID_ENABLED environment variable must be 'true' or 'false', got: %s", gtidEnabled))
829 }
830 return gtidEnabled == "true"
831}
832
833// startMySqlServer configures a starts a fresh MySQL server instance in a Docker container
834// and returns the port it is running on. If unable to start up the MySQL server, an error is returned.

Callers 5

TestFlushLogsFunction · 0.85
queryGtidFunction · 0.85
startReplicationFunction · 0.85
startMySqlServerFunction · 0.85
testInitialReplicaStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected