]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: stat_async() sets the object locator appropriately
authorYehuda Sadeh <yehuda@redhat.com>
Sat, 2 May 2015 23:38:08 +0000 (16:38 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 29 Jun 2015 22:09:02 +0000 (15:09 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_rados.cc

index eba32ab53cb20d905c69366c4ce25054764cacb8..0730f6ce75d802de3dfdc3f89742042c9bd21085 100644 (file)
@@ -4908,6 +4908,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;