From 0599a1c79c92c67616639660c44efc5bdc88d179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Neunh=C3=B6ffer?= Date: Fri, 30 Aug 2019 08:44:07 +0200 Subject: [PATCH] Fix unneeded return code. (#9853) --- arangod/Agency/Agent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arangod/Agency/Agent.cpp b/arangod/Agency/Agent.cpp index 5790f825a1..1824e19aaf 100644 --- a/arangod/Agency/Agent.cpp +++ b/arangod/Agency/Agent.cpp @@ -1976,12 +1976,13 @@ void Agent::emptyCbTrashBin() { // queue + write. auto* scheduler = SchedulerFeature::SCHEDULER; if (scheduler != nullptr) { - scheduler->queue(RequestLane::INTERNAL_LOW, [envelope = std::move(envelope)] { + bool ok = scheduler->queue(RequestLane::INTERNAL_LOW, [envelope = std::move(envelope)] { auto* agent = AgencyFeature::AGENT; if (!application_features::ApplicationServer::isStopping() && agent) { agent->write(envelope); } }); + LOG_TOPIC_IF("52461", DEBUG, Logger::AGENCY, !ok) << "Could not schedule callback cleanup job."; } }