]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: data sync, handle delete marker removal
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 6 Jan 2016 23:43:32 +0000 (15:43 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 00:13:50 +0000 (16:13 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_data_sync.cc

index 3644554d8706e4649eb8978228757ffeccdddb76..cdc46cce2c2e50f05d9a2fabebd0919cd5097579 100644 (file)
@@ -1940,8 +1940,11 @@ public:
             call(new RGWFetchRemoteObjCR(async_rados, store, source_zone, *bucket_info,
                                          key, versioned_epoch,
                                          true));
-          } else if (op == CLS_RGW_OP_DEL) {
+          } else if (op == CLS_RGW_OP_DEL || op == CLS_RGW_OP_UNLINK_INSTANCE) {
             set_status("removing obj");
+            if (op == CLS_RGW_OP_UNLINK_INSTANCE) {
+              versioned = true;
+            }
             call(new RGWRemoveObjCR(async_rados, store, source_zone, *bucket_info, key, versioned, versioned_epoch, NULL, NULL, false, &timestamp));
           } else if (op == CLS_RGW_OP_LINK_OLH_DM) {
             set_status("creating delete marker");