]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: RGWBucket uses creation_time from RGWBucketInfo 36743/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 20 Aug 2020 18:35:32 +0000 (14:35 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 21 Aug 2020 17:05:05 +0000 (13:05 -0400)
commit2c39bf9ffd272bbe171b893a178e7490a25aeb3c
treeae26babc77093343f329bb0401c791d5c54a91cb
parente66dc2fc00cf8a3fcb21c20cd695cdde9f622e5d
rgw: RGWBucket uses creation_time from RGWBucketInfo

RGWRadosBucket::get_creation_time() is uninitialized when returned by
RGWRadosStore::create_bucket(). RGWCreateBucket passes this timestamp to
link_bucket(), which will generate a new creation time if an empty one
is given

Fixes: https://tracker.ceph.com/issues/47055
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_sal.cc
src/rgw/rgw_sal.h