aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/update/Queue.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/db/update/Queue.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/update/Queue.cxx b/src/db/update/Queue.cxx
index 4bb0ae725..096a39a8c 100644
--- a/src/db/update/Queue.cxx
+++ b/src/db/update/Queue.cxx
@@ -26,7 +26,7 @@ UpdateQueue::Push(const char *path, bool discard, unsigned id)
if (update_queue.size() >= MAX_UPDATE_QUEUE_SIZE)
return false;
- update_queue.emplace(path, discard, id);
+ update_queue.emplace_back(path, discard, id);
return true;
}
@@ -37,6 +37,6 @@ UpdateQueue::Pop()
return UpdateQueueItem();
auto i = std::move(update_queue.front());
- update_queue.pop();
+ update_queue.pop_front();
return i;
}