mirror of
https://github.com/ceph/ceph
synced 2025-01-20 10:01:45 +00:00
rgw: encode bucket info only after setting a flag
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
parent
c3260b2768
commit
b09d799f2c
@ -4531,12 +4531,12 @@ int RGWRados::put_bucket_info(string& bucket_name, RGWBucketInfo& info, bool exc
|
||||
{
|
||||
bufferlist bl;
|
||||
|
||||
::encode(info, bl);
|
||||
|
||||
bool create_head = !info.has_instance_obj || create_entry_point;
|
||||
|
||||
info.has_instance_obj = true;
|
||||
|
||||
::encode(info, bl);
|
||||
|
||||
string oid;
|
||||
get_bucket_meta_oid(info.bucket, oid);
|
||||
int ret = rgw_bucket_store_info(this, oid, bl, exclusive, pattrs, objv_tracker, mtime);
|
||||
|
Loading…
Reference in New Issue
Block a user