]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: set modification time to sal::Bucket from RGWBucketEnt 61553/head
authorAndrei Ivashchenko <aiivashchenko@users.noreply.github.com>
Tue, 28 Jan 2025 13:57:11 +0000 (14:57 +0100)
committerAndrei Ivashchenko <aiivashchenko@users.noreply.github.com>
Tue, 28 Jan 2025 14:07:51 +0000 (15:07 +0100)
Signed-off-by: Andrei Ivashchenko <aiivashchenko@users.noreply.github.com>
src/rgw/rgw_rest_swift.h
src/rgw/rgw_sal_store.h

index c0e5d26995c7990e0278323fe2c1407abdfbcac6..e85eaeb3c4113fefff5033615da7c97e395b32bf 100644 (file)
@@ -57,7 +57,7 @@ public:
   void send_response_begin(bool has_buckets) override;
   void send_response_data(rgw::sal::BucketList& buckets) override;
   void send_response_data_reversed(rgw::sal::BucketList& buckets);
-  void dump_bucket_entry(const rgw::sal::Bucket& obj);
+  void dump_bucket_entry(rgw::sal::Bucket& obj);
   void send_response_end() override;
 
   bool should_get_stats() override { return need_stats; }
index 55b43e3d90bda1c795c5534c3bf0bc307b3287e9..1ff7893a05ba9b5883bddfb4fb6e75f04a77ec8a 100644 (file)
@@ -88,6 +88,7 @@ class StoreBucket : public Bucket {
       info.bucket = ent.bucket;
       info.placement_rule = ent.placement_rule;
       info.creation_time = ent.creation_time;
+      mtime = ent.modification_time;
     }
     StoreBucket(const RGWBucketInfo& _i) : info(_i) {
       ent.bucket = info.bucket;
@@ -100,6 +101,7 @@ class StoreBucket : public Bucket {
       info.bucket = ent.bucket;
       info.placement_rule = ent.placement_rule;
       info.creation_time = ent.creation_time;
+      mtime = ent.modification_time;
     }
     StoreBucket(const RGWBucketInfo& _i, User* _u) : info(_i), owner(_u) {
       ent.bucket = info.bucket;