Skip to content

Commit

Permalink
rgw/multisite: Fix issue with parsing replication rules
Browse files Browse the repository at this point in the history
Signed-off-by: Soumya Koduri <[email protected]>
  • Loading branch information
soumyakoduri committed May 23, 2023
1 parent 0fb0dc4 commit 570de79
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/rgw/services/svc_bucket_sync_sobj.cc
Original file line number Diff line number Diff line change
Expand Up @@ -293,14 +293,10 @@ static bool diff_sets(std::set<rgw_bucket>& orig_set,
++oiter;
++niter;
continue;
}
while (*oiter < *niter &&
oiter != orig_set.end()) {
} else if (*oiter < *niter) {
removed->push_back(*oiter);
++oiter;
}
while (*niter < *oiter
&& niter != new_set.end()) {
} else {
added->push_back(*niter);
++niter;
}
Expand Down

0 comments on commit 570de79

Please sign in to comment.