]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: rgw_log_entry always initialize total_time
authorKefu Chai <kchai@redhat.com>
Sun, 25 Aug 2019 06:54:30 +0000 (14:54 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 27 Aug 2019 04:41:58 +0000 (12:41 +0800)
zero-initialize rgw_log_entry::total_time

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/rgw/rgw_log.h

index 57b34491cd85f2e1a41d8f14bf28fabda504e3e5..04d11b78278edc84e9f69d509ff2c2bb3fa6778a 100644 (file)
@@ -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;