mirror of
https://github.com/ceph/ceph
synced 2025-03-06 08:20:12 +00:00
common/WeightedPriorityQueue: add override to func
Add override to virtual functions. Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
This commit is contained in:
parent
a41860a501
commit
30ea2ae6d7
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user