From: Abutalib Aghayev Date: Tue, 15 Dec 2020 17:07:29 +0000 (-0500) Subject: os/bluestore: Fix code rot in ZonedAllocator. X-Git-Tag: v16.1.0~237^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=85e0944435dfddd2e23a26fba0913d1df9a1d7ca;p=ceph.git os/bluestore: Fix code rot in ZonedAllocator. Signed-off-by: Abutalib Aghayev --- diff --git a/src/os/bluestore/ZonedAllocator.cc b/src/os/bluestore/ZonedAllocator.cc index bac6f016997c..0ea278c37dad 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 4b03fe5e822b..5bdf197a58d5 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;