]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/multisite: x-rgw-replicated-at uses dump_time_header() 56765/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 8 Apr 2024 16:23:12 +0000 (12:23 -0400)
committerCasey Bodley <cbodley@redhat.com>
Mon, 8 Apr 2024 16:23:15 +0000 (12:23 -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>
src/rgw/rgw_rest_s3.cc

index b74da94468988ffa07e7cf405caf9b11555c3b57..3389f59d42df36211d4862747ae9a01b77ffcb91 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&) {}
   }