From: Casey Bodley Date: Mon, 8 Apr 2024 16:23:12 +0000 (-0400) Subject: rgw/multisite: x-rgw-replicated-at uses dump_time_header() X-Git-Tag: v20.0.0~2182^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b98254084830594875e304246d4d6548dc97e5b2;p=ceph.git rgw/multisite: x-rgw-replicated-at uses dump_time_header() 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 --- diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index b74da9446898..3389f59d42df 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -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&) {} }