]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/multisite: x-rgw-replicated-at uses dump_time_header()
authorCasey Bodley <cbodley@redhat.com>
Mon, 8 Apr 2024 16:23:12 +0000 (12:23 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 10 Apr 2024 16:41:32 +0000 (12:41 -0400)
dump_time() encodes this timestamp as json/xml. use dump_time_header()
instead

Fixes: https://tracker.ceph.com/issues/65373
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit b98254084830594875e304246d4d6548dc97e5b2)

src/rgw/rgw_rest_s3.cc

index efeed8f933d622d61346e0351ce59c38f0b034a4..afa3e66f05b42c1322c88276a2c09aef5e29899c 100644 (file)
@@ -469,7 +469,7 @@ int RGWGetObj_ObjStore_S3::send_response_data(bufferlist& bl, off_t bl_ofs,
     try {
       ceph::real_time replicated_time;
       decode(replicated_time, i->second);
-      dump_time(s, "x-rgw-replicated-at", replicated_time);
+      dump_time_header(s, "x-rgw-replicated-at", replicated_time);
     } catch (const buffer::error&) {}
   }