]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/multisite: fix sync_error_trim command. 53828/head
authorShilpa Jagannath <smanjara@redhat.com>
Wed, 4 Oct 2023 19:22:41 +0000 (15:22 -0400)
committerShilpa Jagannath <smanjara@redhat.com>
Fri, 27 Oct 2023 14:26:09 +0000 (10:26 -0400)
without --marker option, we trim everthing.
if --marker option is passed in, we trim upto that marker.

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
src/rgw/rgw_admin.cc

index cc7f5811c9efeee2a3341cbddb5e9a8c8637e34d..cc7f2b704d8980ea9380a535ec90424958d759f2 100644 (file)
@@ -9579,13 +9579,16 @@ next:
       return -EINVAL;
     }
     if (!start_marker.empty()) {
-      std::cerr << "end-date not allowed." << std::endl;
+      std::cerr << "start-marker not allowed." << std::endl;
       return -EINVAL;
     }
     if (!end_marker.empty()) {
-      std::cerr << "end-date not allowed." << std::endl;
+      std::cerr << "end_marker not allowed." << std::endl;
       return -EINVAL;
     }
+    if (marker.empty()) {
+      marker = "9"; // trims everything
+    }
 
     if (shard_id < 0) {
       shard_id = 0;