]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls_user: init cls_user_stats fields in ctor
authorSage Weil <sage@inktank.com>
Wed, 29 Jan 2014 04:07:00 +0000 (20:07 -0800)
committerSage Weil <sage@inktank.com>
Wed, 29 Jan 2014 04:07:00 +0000 (20:07 -0800)
Signed-off-by: Sage Weil <sage@inktank.com>
src/cls/user/cls_user_types.h

index c24f324099cd8a43f3b72b247370c236f473c2af..fce25c37fd2a73818d5c2dcf62415cf570cd90a7 100644 (file)
@@ -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);