]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: clone mdlog updates marker in any case
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 18 Dec 2015 23:55:50 +0000 (15:55 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 00:13:46 +0000 (16:13 -0800)
Need to set the new_marker even if no new entries fetched.

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

index 45d4e2ea27ab6b1ffd03395ac0d5cbaafbbe2ab2..e71ccad9f69f62889ce97f786a9aa4def63927d5 100644 (file)
@@ -1765,6 +1765,9 @@ int RGWCloneMetaLogCoroutine::state_receive_rest_response()
   truncated = ((int)data.entries.size() == max_entries);
 
   if (data.entries.empty()) {
+    if (new_marker) {
+      *new_marker = marker;
+    }
     return set_cr_done();
   }