]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/seastore: use get_hint in object_data_handler
authorChunmei Liu <chunmei.liu@intel.com>
Thu, 12 Aug 2021 00:45:55 +0000 (17:45 -0700)
committerChunmei Liu <chunmei.liu@intel.com>
Mon, 16 Aug 2021 20:54:42 +0000 (13:54 -0700)
Signed-off-by: Chunmei Liu <chunmei.liu@intel.com>
src/crimson/os/seastore/object_data_handler.cc

index 185c56dd6f46eead6e44bca563474057061ff1bd..f552f80818c43e39de1e5e57587068b890a7c2e3 100644 (file)
@@ -247,7 +247,7 @@ ObjectDataHandler::write_ret ObjectDataHandler::prepare_data_reservation(
   } else {
     return ctx.tm.reserve_region(
       ctx.t,
-      0 /* TODO -- pass hint based on object hash */,
+      ctx.onode.get_hint(),
       MAX_OBJECT_SIZE
     ).si_then([&object_data](auto pin) {
       ceph_assert(pin->get_length() == MAX_OBJECT_SIZE);