From 85e0944435dfddd2e23a26fba0913d1df9a1d7ca Mon Sep 17 00:00:00 2001 From: Abutalib Aghayev Date: Tue, 15 Dec 2020 12:07:29 -0500 Subject: [PATCH] os/bluestore: Fix code rot in ZonedAllocator. Signed-off-by: Abutalib Aghayev --- src/os/bluestore/ZonedAllocator.cc | 2 +- src/os/bluestore/ZonedAllocator.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/os/bluestore/ZonedAllocator.cc b/src/os/bluestore/ZonedAllocator.cc index bac6f016997..0ea278c37da 100644 --- a/src/os/bluestore/ZonedAllocator.cc +++ b/src/os/bluestore/ZonedAllocator.cc @@ -22,7 +22,7 @@ ZonedAllocator::ZonedAllocator(CephContext* cct, int64_t size, int64_t block_size, const std::string& name) - : Allocator(name), + : Allocator(name, size, block_size), cct(cct), num_free(0), size(size), diff --git a/src/os/bluestore/ZonedAllocator.h b/src/os/bluestore/ZonedAllocator.h index 4b03fe5e822..5bdf197a58d 100644 --- a/src/os/bluestore/ZonedAllocator.h +++ b/src/os/bluestore/ZonedAllocator.h @@ -63,6 +63,10 @@ public: const std::string& name); ~ZonedAllocator() override; + const char *get_type() const override { + return "zoned"; + } + int64_t allocate( uint64_t want_size, uint64_t alloc_unit, uint64_t max_alloc_size, int64_t hint, PExtentVector *extents) override; -- 2.39.5