From: Matt Benjamin Date: Tue, 12 Jan 2016 22:14:05 +0000 (-0500) Subject: librgw: fix a prefix bug and bucket timestamp bug X-Git-Tag: v10.1.0~382^2~37 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b57f51bf1dc5b235cd74e7d457b749f6aef76bd9;p=ceph.git librgw: fix a prefix bug and bucket timestamp bug The fix for missing bucket.creation_time in RGWStatBucket is not complete--we're not carrying all the info over. Signed-off-by: Matt Benjamin --- diff --git a/src/rgw/rgw_file.cc b/src/rgw/rgw_file.cc index 60d1afbcbc01..5d9374b5b2b5 100644 --- a/src/rgw/rgw_file.cc +++ b/src/rgw/rgw_file.cc @@ -152,7 +152,7 @@ namespace rgw { break; }; - return rgw_fh->stat(st);; + return rgw_fh->stat(st); } /* RGWLibFS::getattr */ void RGWLibFS::close() diff --git a/src/rgw/rgw_file.h b/src/rgw/rgw_file.h index 5df33e4ba073..da4379aa8c14 100644 --- a/src/rgw/rgw_file.h +++ b/src/rgw/rgw_file.h @@ -1587,7 +1587,9 @@ public: return 0; } - virtual void send_response() {} + virtual void send_response() { + bucket.creation_time = get_state()->bucket_info.creation_time; + } bool matched() { return (bucket.bucket.name.length() > 0);