]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "rgw/multisite: avoid redundant error repo entry logging" 60589/head
authorSeena Fallah <seenafallah@gmail.com>
Mon, 4 Nov 2024 17:26:55 +0000 (18:26 +0100)
committerSeena Fallah <seenafallah@gmail.com>
Mon, 4 Nov 2024 17:26:55 +0000 (18:26 +0100)
In order to keep the order of processing the generations, when the
requested gen is higher than the current gen we log both into the
error repo and process them in order again later.

Fixes: https://tracker.ceph.com/issues/68805
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
This reverts commit a191f9a6d2997f655f580e16731615e77350a03d.

src/rgw/driver/rados/rgw_data_sync.cc

index d5437f548c18a0724ae5dd324f6651483ae79882..792671579b7490db120b9b3dd86c9e25045895bb 100644 (file)
@@ -6052,13 +6052,12 @@ int RGWSyncBucketCR::operate(const DoutPrefixProvider *dpp)
               } else {
                 tn->log(20, SSTR("logged prev gen entry (bucket=" << source_bs.bucket << ", shard_id=" << source_bs.shard_id << ", gen=" << current_gen << " in error repo: retcode=" << retcode));
              }
-           } else {
+           }
             retcode = -EAGAIN;
             tn->log(10, SSTR("ERROR: requested sync of future generation "
                              << *gen << " > " << current_gen
                              << ", returning " << retcode << " for later retry"));
             return set_cr_error(retcode);
-            }
           } else if (*gen < current_gen) {
             tn->log(10, SSTR("WARNING: requested sync of past generation "
                              << *gen << " < " << current_gen