From 681e012fb542ee1bb2ea5312dc673987a7a8ee29 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 27 Feb 2014 16:36:11 +0100 Subject: db/update: cancel the update on shutdown --- src/db/update/Queue.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/db/update/Queue.hxx') diff --git a/src/db/update/Queue.hxx b/src/db/update/Queue.hxx index a5b2aa9ac..eb0b268bf 100644 --- a/src/db/update/Queue.hxx +++ b/src/db/update/Queue.hxx @@ -50,6 +50,10 @@ public: bool Push(const char *path, bool discard, unsigned id); UpdateQueueItem Pop(); + + void Clear() { + update_queue = decltype(update_queue)(); + } }; #endif -- cgit v1.2.3