From: Michal Jarzabek Date: Wed, 25 May 2016 21:12:49 +0000 (+0100) Subject: common/WeightedPriorityQueue: add override to func X-Git-Tag: v11.0.0~405^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F9353%2Fhead;p=ceph.git common/WeightedPriorityQueue: add override to func Add override to virtual functions. Signed-off-by: Michal Jarzabek --- diff --git a/src/common/WeightedPriorityQueue.h b/src/common/WeightedPriorityQueue.h index 39d5eb79b672..a94ff2d30948 100644 --- a/src/common/WeightedPriorityQueue.h +++ b/src/common/WeightedPriorityQueue.h @@ -357,14 +357,14 @@ class WeightedPriorityQueue : public OpQueue void enqueue_front(K cl, unsigned p, unsigned cost, T item) override final { normal.insert(p, cl, cost, item, true); } - T dequeue() { + T dequeue() override { assert(strict.size + normal.size > 0); if (!strict.empty()) { return strict.pop(true); } return normal.pop(); } - void dump(ceph::Formatter *f) const { + void dump(ceph::Formatter *f) const override { f->open_array_section("high_queues"); strict.dump(f); f->close_section();