crimson/seastore: use get_hint in object_data_handler

Signed-off-by: Chunmei Liu <chunmei.liu@intel.com>
This commit is contained in:
Chunmei Liu 2021-08-11 17:45:55 -07:00
parent 23693c1010
commit 21adad11d7

View 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);