diff --git a/pkg/dbop/status_test.go b/pkg/dbop/status_test.go index 55521981..e6efe82b 100644 --- a/pkg/dbop/status_test.go +++ b/pkg/dbop/status_test.go @@ -28,6 +28,7 @@ var _ = Describe("status", func() { Expect(err).NotTo(HaveOccurred()) Expect(status).NotTo(BeNil()) Expect(status.GlobalVariables.ExecutedGTID).To(BeEmpty()) + Expect(status.GlobalVariables.PurgedGTID).To(BeEmpty()) Expect(status.GlobalVariables.ReadOnly).To(BeTrue()) Expect(status.GlobalVariables.SuperReadOnly).To(BeTrue()) Expect(status.GlobalVariables.WaitForSlaveCount).To(Equal(1)) @@ -43,6 +44,7 @@ var _ = Describe("status", func() { Expect(err).NotTo(HaveOccurred()) Expect(status).NotTo(BeNil()) Expect(status.GlobalVariables.ExecutedGTID).NotTo(BeEmpty()) + Expect(status.GlobalVariables.PurgedGTID).To(BeEmpty()) Expect(status.GlobalVariables.ReadOnly).To(BeFalse()) Expect(status.GlobalVariables.SuperReadOnly).To(BeFalse()) Expect(status.GlobalVariables.WaitForSlaveCount).To(Equal(1)) diff --git a/pkg/dbop/types.go b/pkg/dbop/types.go index d1b5faa9..e82d4f7f 100644 --- a/pkg/dbop/types.go +++ b/pkg/dbop/types.go @@ -34,6 +34,7 @@ var statusGlobalVars = []string{ type GlobalVariables struct { UUID string `db:"@@server_uuid"` ExecutedGTID string `db:"@@gtid_executed"` + PurgedGTID string `db:"@@gtid_purged"` ReadOnly bool `db:"@@read_only"` SuperReadOnly bool `db:"@@super_read_only"` WaitForSlaveCount int `db:"@@rpl_semi_sync_master_wait_for_slave_count"`