]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: Fix code rot in ZonedAllocator. 38600/head
authorAbutalib Aghayev <agayev@psu.edu>
Tue, 15 Dec 2020 17:07:29 +0000 (12:07 -0500)
committerAbutalib Aghayev <agayev@psu.edu>
Wed, 16 Dec 2020 14:05:40 +0000 (09:05 -0500)
Signed-off-by: Abutalib Aghayev <agayev@psu.edu>
src/os/bluestore/ZonedAllocator.cc
src/os/bluestore/ZonedAllocator.h

index bac6f016997c992e13113c5b997db9f85e2cbcf6..0ea278c37dad866d1d490c46d3304a4562a3de60 100644 (file)
@@ -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),
index 4b03fe5e822b5259977da7d2b139f04f0d896174..5bdf197a58d5d8ffd15861330efe719cc01528be 100644 (file)
@@ -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;