summaryrefslogtreecommitdiff
path: root/lib/input
diff options
context:
space:
mode:
Diffstat (limited to 'lib/input')
-rw-r--r--lib/input/replStream.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/input/replStream.cpp b/lib/input/replStream.cpp
index 7a995d3..f7452e7 100644
--- a/lib/input/replStream.cpp
+++ b/lib/input/replStream.cpp
@@ -32,10 +32,11 @@ namespace MyGrate::Input {
verify<MySQLErr>(!mariadb_rpl_open(rpl.get()), "Failed to mariadb_rpl_open", this);
while (MyGrate::MariaDB_Event_Ptr event {mariadb_rpl_fetch(rpl.get(), nullptr), &mariadb_free_rpl_event}) {
- position = event->next_event_pos;
+ auto np = event->next_event_pos;
if (const auto & h = eventHandlers.at(event->event_type); h.func) {
(eh.*h.func)(std::move(event));
}
+ position = np;
}
}