]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: add default ctor for quota_info_t
authorLoic Dachary <ldachary@redhat.com>
Sat, 20 Dec 2014 00:08:33 +0000 (01:08 +0100)
committerSage Weil <sage@redhat.com>
Tue, 23 Dec 2014 20:52:46 +0000 (12:52 -0800)
http://tracker.ceph.com/issues/10400 Fixes: #10400

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit 7f1e510165f284aad3f341ff89f64d5c3e8fe60e)

src/mds/mdstypes.h

index 711f115f02c63aa075bb2365405387bbd8688310..0ae589b5cbf09531e022c3a91049ade583199e95 100644 (file)
@@ -265,6 +265,8 @@ struct quota_info_t
   int64_t max_bytes;
   int64_t max_files;
  
+  quota_info_t() : max_bytes(0), max_files(0) {}
+
   void encode(bufferlist& bl) const {
     ENCODE_START(1, 1, bl);
     ::encode(max_bytes, bl);