File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,8 @@ private function getBinlogStream()
159
159
$ this ->execute ('SET @slave_connect_state = \'' . Config::getMariaDbGtid () . '\'' );
160
160
$ this ->execute ('SET @slave_gtid_strict_mode = 0 ' );
161
161
$ this ->execute ('SET @slave_gtid_ignore_duplicates = 0 ' );
162
- } else if ('' !== Config::getGtid ()) {
162
+ }
163
+ if ('' !== Config::getGtid ()) {
163
164
$ this ->setBinLogDumpGtid ();
164
165
} else {
165
166
$ this ->setBinLogDump ();
Original file line number Diff line number Diff line change @@ -75,7 +75,13 @@ public function isCheckSum()
75
75
{
76
76
$ res = $ this ->getConnection ()->fetchAssoc ('SHOW GLOBAL VARIABLES LIKE "BINLOG_CHECKSUM" ' );
77
77
78
- return isset ($ res ['Value ' ]);
78
+ if (!isset ($ res ['Value ' ])) {
79
+ return false ;
80
+ }
81
+
82
+ $ check_sum = $ res ['Value ' ];
83
+
84
+ return (!empty ($ check_sum ) && strtolower ($ check_sum ) !== 'none ' );
79
85
}
80
86
81
87
/**
You can’t perform that action at this time.
0 commit comments