]> 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)
committerLoic Dachary <ldachary@redhat.com>
Sun, 30 Aug 2015 15:55:59 +0000 (17:55 +0200)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit d7d117121858155acc8548908e9459a48c676dd1)

src/rgw/rgw_rados.cc

index 9a415eb9112888bc4a753a4fde6bce4cf55de7c5..3cc679e03c0085fef1f552088f71e17ec262a2e0 100644 (file)
@@ -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;