Skip to content

Commit f288861

Browse files
committed
rgw: skip on EACCES in RGWBucketSyncSingleEntryCR
As of offloading source bucket perm check to the source cluster by (a3f40b4) the http result of 403 would be translated to EACCES by rgw_http_error_to_errno() so we need to also consider EACCES to be skipped in RGWBucketSyncSingleEntryCR(). Signed-off-by: Seena Fallah <[email protected]>
1 parent b18b549 commit f288861

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rgw/driver/rados/rgw_data_sync.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4520,7 +4520,7 @@ class RGWBucketSyncSingleEntryCR : public RGWCoroutine {
45204520
}
45214521
tn->set_resource_name(SSTR(bucket_str_noinstance(bs.bucket) << "/" << key));
45224522
}
4523-
if (retcode == -ERR_PRECONDITION_FAILED || retcode == -EPERM) {
4523+
if (retcode == -ERR_PRECONDITION_FAILED || retcode == -EPERM || retcode == -EACCES) {
45244524
pretty_print(sc->env, "Skipping object s3://{}/{} in sync from zone {}\n",
45254525
bs.bucket.name, key, zone_name);
45264526
set_status("Skipping object sync: precondition failed (object contains newer change or policy doesn't allow sync)");

0 commit comments

Comments
 (0)