From 85de3924d3d9d775388579357c18ecb3202239a7 Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Wed, 19 Jul 2017 15:22:10 +0200 Subject: [PATCH] rgw_lc: avoid an extra newline while logging lifecycle Since `ctime_r` adds a newline we would end up getting an empty newline, use the asctime helper from rgw_common instead. Signed-off-by: Abhishek Lekshmanan --- src/rgw/rgw_lc.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rgw/rgw_lc.cc b/src/rgw/rgw_lc.cc index 1d91df58ce5..2990bff1e81 100644 --- a/src/rgw/rgw_lc.cc +++ b/src/rgw/rgw_lc.cc @@ -147,10 +147,10 @@ void *RGWLC::LCWorker::entry() { utime_t end = ceph_clock_now(); int secs = schedule_next_start_time(start, end); - time_t next_time = end + secs; - char buf[30]; - char *nt = ctime_r(&next_time, buf); - dout(5) << "schedule life cycle next start time: " << nt <