]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: set exists flag when suggesting existing bucket entry
authorYehuda Sadeh <yehuda@inktank.com>
Wed, 12 Sep 2012 23:49:06 +0000 (16:49 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Tue, 18 Sep 2012 19:57:05 +0000 (12:57 -0700)
We weren't setting the 'exists' flag on the bucket entry,
so we ended up not updating the index correctly.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_rados.cc

index 0767434d743716f47564db7c983ebfb78dab136d..2324f16dd89a8dccbde7a777bb00a15f234db30a 100644 (file)
@@ -2972,6 +2972,7 @@ int RGWRados::check_disk_state(librados::IoCtx io_ctx,
   list_state.epoch = io_ctx.get_last_version();
   list_state.meta.size = object.size;
   list_state.meta.mtime.set_from_double(double(object.mtime));
+  list_state.exists = true;
   cls_rgw_encode_suggestion(CEPH_RGW_UPDATE, list_state, suggested_updates);
   return 0;
 }