From fd260c990b1e317f2556ff3384c5609e5ab47c27 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 28 Jan 2014 20:07:00 -0800 Subject: [PATCH] cls_user: init cls_user_stats fields in ctor Signed-off-by: Sage Weil --- src/cls/user/cls_user_types.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cls/user/cls_user_types.h b/src/cls/user/cls_user_types.h index c24f324099cd8..fce25c37fd2a7 100644 --- a/src/cls/user/cls_user_types.h +++ b/src/cls/user/cls_user_types.h @@ -119,6 +119,11 @@ struct cls_user_stats { uint64_t total_bytes; uint64_t total_bytes_rounded; + cls_user_stats() + : total_entries(0), + total_bytes(0), + total_bytes_rounded(0) {} + void encode(bufferlist& bl) const { ENCODE_START(1, 1, bl); ::encode(total_entries, bl); -- 2.39.5