From 05b75be49f2961f72f6cae7fdfcb837cd13a4370 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 31 Jul 2021 17:06:27 +0100 Subject: before and afterEvents for log rotate --- lib/output/pq/updateDatabase.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/output/pq/updateDatabase.cpp b/lib/output/pq/updateDatabase.cpp index 59c5013..e5cd8d8 100644 --- a/lib/output/pq/updateDatabase.cpp +++ b/lib/output/pq/updateDatabase.cpp @@ -402,8 +402,10 @@ namespace MyGrate::Output::Pq { UpdateDatabase::rotate(MariaDB_Event_Ptr e) { if ((e->flags & LOG_EVENT_ARTIFICIAL_F) == 0) { + beforeEvent(e); output::pq::sql::updateSourceRotate::execute( this, *e->event.rotate.filename, e->event.rotate.position, source); + afterEvent(e); } } } -- cgit v1.2.3