From: weiqiaomiao Date: Mon, 4 Jul 2016 10:16:39 +0000 (+0800) Subject: rgw: for the create_bucket api, if the input creation_time is zero, we should set... X-Git-Tag: v11.0.1~470^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=499c0e95a58bb7bd2326ea74761ea98449d26d3b;p=ceph-ci.git rgw: for the create_bucket api, if the input creation_time is zero, we should set it to 'now" Fixes: http://tracker.ceph.com/issues/16597 Signed-off-by: weiqiaomiao --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 8d3a5078e09..dffaf34491f 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -5158,7 +5158,7 @@ int RGWRados::create_bucket(RGWUserInfo& owner, rgw_bucket& bucket, info.bucket_index_shard_hash_type = RGWBucketInfo::MOD; info.requester_pays = false; if (real_clock::is_zero(creation_time)) { - creation_time = ceph::real_clock::now(cct); + info.creation_time = ceph::real_clock::now(cct); } else { info.creation_time = creation_time; }