]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw_lc: replace strftime w/fmt and chrono:calendar
authorMatt Benjamin <mbenjamin@redhat.com>
Mon, 19 Feb 2024 14:01:48 +0000 (09:01 -0500)
committerCasey Bodley <cbodley@redhat.com>
Tue, 12 Mar 2024 19:30:42 +0000 (15:30 -0400)
commitc36e0658daab316e96b366e0b20c259d9ffcdde7
treee8c70921c74f8a3c00a98e5761e5058cd282fd1d
parentf6a7f600cd387506602f060611c54a8b7f2d9235
rgw_lc:  replace strftime w/fmt and chrono:calendar

It's reliably claimed that std::strftime is not
mt-safe, and this would be a likely root cause of
intermittent scrambled expiration header output cases
that have been reported.

Fixes: https://tracker.ceph.com/issues/63973
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 96a5cbb9aa47ed1a2b51e720475ebc08012cb4cc)
src/rgw/rgw_lc.cc
src/test/rgw/test_rgw_lc.cc