]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix end condition in AsyncMetadataList for bilog trim
authorCasey Bodley <cbodley@redhat.com>
Thu, 25 Apr 2019 13:51:35 +0000 (09:51 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 18 Oct 2019 19:34:04 +0000 (15:34 -0400)
the metadata listing does not include the start_marker, so we need to
include it at the end if we looped all the way around

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit fcd43128df7a504300a399ca429e82c8e8a5857c)

src/rgw/rgw_sync_log_trim.cc

index 53aa8e10aa90c35e7525d345140f63c7e532de1f..686d21e80a6ba219fe0b8ff286e1b0f24315f75d 100644 (file)
@@ -665,7 +665,7 @@ int AsyncMetadataList::_send_request()
       ceph_assert(keys.size() == 1);
       auto& key = keys.front();
       // stop at original marker
-      if (marker >= start_marker) {
+      if (marker > start_marker) {
         return 0;
       }
       if (!callback(std::move(key), std::move(marker))) {