]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: for the create_bucket api, if the input creation_time is zero, we should set... 10118/head
authorweiqiaomiao <wei.qiaomiao@zte.com.cn>
Mon, 4 Jul 2016 10:16:39 +0000 (18:16 +0800)
committerweiqiaomiao <wei.qiaomiao@zte.com.cn>
Tue, 9 Aug 2016 00:55:44 +0000 (08:55 +0800)
Fixes: http://tracker.ceph.com/issues/16597
Signed-off-by: weiqiaomiao <wei.qiaomiao@zte.com.cn>
src/rgw/rgw_rados.cc

index 8d3a5078e095828df5d247783532fe7e1cab8f49..dffaf34491f36f404a7b6341fc4b57bf69906d94 100644 (file)
@@ -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;
     }