mirror of
https://github.com/ceph/ceph
synced 2025-02-22 10:37:15 +00:00
Merge pull request #41288 from ofriedma/wip-ofriedma-segfault
rgw: crash on multipart upload to bucket with policy
This commit is contained in:
commit
428809482b
@ -586,6 +586,9 @@ int rgw_build_bucket_policies(const DoutPrefixProvider *dpp, rgw::sal::Store* st
|
||||
s->bucket_exists = false;
|
||||
return -ERR_NO_SUCH_BUCKET;
|
||||
}
|
||||
if (!rgw::sal::Object::empty(s->object.get())) {
|
||||
s->object->set_bucket(s->bucket.get());
|
||||
}
|
||||
|
||||
s->bucket_mtime = s->bucket->get_modification_time();
|
||||
s->bucket_attrs = s->bucket->get_attrs();
|
||||
|
Loading…
Reference in New Issue
Block a user