Skip to content
Snippets Groups Projects
Commit e6e6c818 authored by Eric Cano's avatar Eric Cano
Browse files

Increased the archive queue update delay.

It appeared in production that the update latency could be steadily higher than this delay.
This led to an ever growing perceived latency by the client, as the batches to be queued accumulated
faster than they were drained.

This is an interim solution to a more adaptive one which should make no asumption.
parent 2660d560
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ std::shared_ptr<SharedQueueLock> MemArchiveQueue::sharedAddToArchiveQueueWithNew
auto queueFuture=maq->m_promise.get_future();
globalLock.unlock();
// Wait for timeout or enough jobs.
queueFuture.wait_for(std::chrono::milliseconds(100));
queueFuture.wait_for(std::chrono::milliseconds(500));
ANNOTATE_HAPPENS_AFTER(&maq->m_promise);
ANNOTATE_HAPPENS_BEFORE_FORGET_ALL(&maq->m_promise);
// Re-take the global and make sure the queue is not referenced anymore.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment