summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-06-29 00:35:57 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-06-29 00:35:57 +0100
commit456e7b066dd41d76fecf5743c1ed2601db3db42a (patch)
tree720a111bc914610ed5d6745ddcb0b4a4ba06e32d
parentAdd missing virtual destructor (diff)
downloadmygrate-456e7b066dd41d76fecf5743c1ed2601db3db42a.tar.bz2
mygrate-456e7b066dd41d76fecf5743c1ed2601db3db42a.tar.xz
mygrate-456e7b066dd41d76fecf5743c1ed2601db3db42a.zip
MARIADB_RPL_FILENAME requires the filename length, not just the string data
-rw-r--r--lib/input/replStream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/input/replStream.cpp b/lib/input/replStream.cpp
index 90f26d6..c5bc61f 100644
--- a/lib/input/replStream.cpp
+++ b/lib/input/replStream.cpp
@@ -26,7 +26,7 @@ namespace MyGrate::Input {
query("SET @master_binlog_checksum = @@global.binlog_checksum");
mariadb_rpl_optionsv(rpl.get(), MARIADB_RPL_SERVER_ID, serverid);
- mariadb_rpl_optionsv(rpl.get(), MARIADB_RPL_FILENAME, filename.c_str());
+ mariadb_rpl_optionsv(rpl.get(), MARIADB_RPL_FILENAME, filename.c_str(), filename.length());
mariadb_rpl_optionsv(rpl.get(), MARIADB_RPL_START, position);
mariadb_rpl_optionsv(rpl.get(), MARIADB_RPL_FLAGS, MARIADB_RPL_BINLOG_SEND_ANNOTATE_ROWS);