aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateQueue.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/UpdateQueue.cxx')
-rw-r--r--src/UpdateQueue.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/UpdateQueue.cxx b/src/UpdateQueue.cxx
index aa6074c7f..2a30e5d5f 100644
--- a/src/UpdateQueue.cxx
+++ b/src/UpdateQueue.cxx
@@ -27,14 +27,14 @@ static constexpr unsigned MAX_UPDATE_QUEUE_SIZE = 32;
static std::queue<UpdateQueueItem, std::list<UpdateQueueItem>> update_queue;
-unsigned
-update_queue_push(const char *path, bool discard, unsigned base)
+bool
+update_queue_push(const char *path, bool discard, unsigned id)
{
if (update_queue.size() >= MAX_UPDATE_QUEUE_SIZE)
- return 0;
+ return false;
- update_queue.emplace(path, discard);
- return base + update_queue.size();
+ update_queue.emplace(path, discard, id);
+ return true;
}
UpdateQueueItem