From 6b030aa8ba5a04ba81516effaf72e7f3089540c0 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Sat, 20 Dec 2014 01:08:33 +0100 Subject: [PATCH] mds: add default ctor for quota_info_t http://tracker.ceph.com/issues/10400 Fixes: #10400 Signed-off-by: Loic Dachary (cherry picked from commit 7f1e510165f284aad3f341ff89f64d5c3e8fe60e) --- src/mds/mdstypes.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mds/mdstypes.h b/src/mds/mdstypes.h index 711f115f02c63..0ae589b5cbf09 100644 --- a/src/mds/mdstypes.h +++ b/src/mds/mdstypes.h @@ -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); -- 2.39.5