From 78777fba200903e37a4948e0682d2e27b01d0296 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 14 Jun 2024 10:45:44 +0200 Subject: [PATCH] Revert "Remove unneeded error "last successful id is higher than latest id" (fixes #4363) (#4486)" This reverts commit c895e5708619fcebe2e75d905d258177ff08100b. --- crates/federate/src/worker.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/federate/src/worker.rs b/crates/federate/src/worker.rs index 24fb983db..25c9278aa 100644 --- a/crates/federate/src/worker.rs +++ b/crates/federate/src/worker.rs @@ -167,6 +167,14 @@ impl InstanceWorker { latest_id }; if id >= latest_id { + if id > latest_id { + tracing::error!( + "{}: last successful id {} is higher than latest id {} in database (did the db get cleared?)", + self.instance.domain, + id.0, + latest_id.0 + ); + } // no more work to be done, wait before rechecking tokio::select! { () = sleep(*WORK_FINISHED_RECHECK_DELAY) => {},