diff --git a/src/rgw/rgw_file.cc b/src/rgw/rgw_file.cc index 5b61583090e..6a55d3f1d8f 100644 --- a/src/rgw/rgw_file.cc +++ b/src/rgw/rgw_file.cc @@ -901,6 +901,10 @@ namespace rgw { } break; default: + if (unlikely(rgw_fh->is_bucket())) { + /* treat buckets like immutable, namespace roots */ + return 0; /* it's not an error, we just won't do it */ + } break; };