common/WeightedPriorityQueue: add override to func

Add override to virtual functions.

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
This commit is contained in:
Michal Jarzabek 2016-05-25 22:12:49 +01:00
parent a41860a501
commit 30ea2ae6d7

View File

@ -357,14 +357,14 @@ class WeightedPriorityQueue : public OpQueue <T, K>
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();