From 456e7b066dd41d76fecf5743c1ed2601db3db42a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 29 Jun 2021 00:35:57 +0100 Subject: MARIADB_RPL_FILENAME requires the filename length, not just the string data --- lib/input/replStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3