From 123f42d0aa6192abe8bf44f770feb83d37c7acfa Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 25 Aug 2019 14:54:30 +0800 Subject: [PATCH] rgw: rgw_log_entry always initialize total_time zero-initialize rgw_log_entry::total_time Signed-off-by: Kefu Chai --- src/rgw/rgw_log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_log.h b/src/rgw/rgw_log.h index 57b34491cd85f..04d11b78278ed 100644 --- a/src/rgw/rgw_log.h +++ b/src/rgw/rgw_log.h @@ -29,7 +29,7 @@ struct rgw_log_entry { uint64_t bytes_sent; uint64_t bytes_received; uint64_t obj_size; - Clock::duration total_time; + Clock::duration total_time{}; string user_agent; string referrer; string bucket_id; -- 2.39.5