From a3c8761bedf65cdaa22c0f9e9f1b7895bcde74d4 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Fri, 14 Jun 2024 14:15:12 +0200 Subject: [PATCH] Revert "Remove unneeded error "last successful id is higher than latest id" (fixes #4363) (#4486)" (#4806) 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) => {},