]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
librgw: fix a prefix bug and bucket timestamp bug
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 12 Jan 2016 22:14:05 +0000 (17:14 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:07:57 +0000 (12:07 -0500)
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 <mbenjamin@redhat.com>
src/rgw/rgw_file.cc
src/rgw/rgw_file.h

index 60d1afbcbc0189775a1bcac66fbf24460d02e657..5d9374b5b2b576a0559027130155348e80633f08 100644 (file)
@@ -152,7 +152,7 @@ namespace rgw {
       break;
     };
 
-    return rgw_fh->stat(st);;
+    return rgw_fh->stat(st);
   } /* RGWLibFS::getattr */
 
   void RGWLibFS::close()
index 5df33e4ba073d301534937899f856488962e6c16..da4379aa8c14f5db364ad3fa74465db307fe7e69 100644 (file)
@@ -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);