log an error when we try to push an event and there is no more room because we have reached max queue depth;

pull/128/head
Bryan Biedenkapp 2 months ago
parent 2f07048666
commit 4840c2d4c5

@ -217,6 +217,7 @@ namespace {
const size_t headValue = head.load(std::memory_order_acquire);
const size_t pending = tailValue - headValue;
if (pending >= maxDepth) {
LogError(LOG_MASTER, "Failed to push SQLite metric event: queue is full, pending = %zu, maxDepth = %zu", pending, maxDepth);
return false;
}

Loading…
Cancel
Save

Powered by TurnKey Linux.