summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);