From 80a40342b6a0d9e7a47ca4b672901315246385df Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Sat, 2 May 2015 16:38:08 -0700 Subject: [PATCH] rgw: stat_async() sets the object locator appropriately Signed-off-by: Yehuda Sadeh (cherry picked from commit d7d117121858155acc8548908e9459a48c676dd1) --- src/rgw/rgw_rados.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 9a415eb911288..3cc679e03c008 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -5041,6 +5041,7 @@ int RGWRados::Object::Stat::stat_async() op.stat(&result.size, &result.mtime, NULL); op.getxattrs(&result.attrs, NULL); state.completion = librados::Rados::aio_create_completion(NULL, NULL, NULL); + state.io_ctx.locator_set_key(loc); r = state.io_ctx.aio_operate(oid, state.completion, &op, NULL); if (r < 0) { ldout(store->ctx(), 5) << __func__ << ": ERROR: aio_operate() returned ret=" << r << dendl; -- 2.39.5