From: Sage Weil Date: Wed, 29 Jan 2014 04:07:00 +0000 (-0800) Subject: cls_user: init cls_user_stats fields in ctor X-Git-Tag: v0.78~259 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fd260c990b1e317f2556ff3384c5609e5ab47c27;p=ceph.git cls_user: init cls_user_stats fields in ctor Signed-off-by: Sage Weil --- diff --git a/src/cls/user/cls_user_types.h b/src/cls/user/cls_user_types.h index c24f324099c..fce25c37fd2 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);