From e461f0966aec5f35b8bf9aa4281be82dfddb2a42 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Tue, 15 Jan 2013 13:29:40 -0800 Subject: [PATCH] mds: fix byte_range_t ctor I do not think we saw any bugs from this, but anything that involved capability issues on restart or migrate might have been caused by this. Signed-off-by: Sage Weil Signed-off-by: Greg Farnum --- src/mds/mdstypes.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mds/mdstypes.h b/src/mds/mdstypes.h index 22e754eb2a14e..74b8571e0f33f 100644 --- a/src/mds/mdstypes.h +++ b/src/mds/mdstypes.h @@ -324,6 +324,8 @@ inline ostream& operator<<(ostream &out, const vinodeno_t &vino) { struct byte_range_t { uint64_t first, last; // interval client can write to + byte_range_t() : first(0), last(0) {} + void encode(bufferlist &bl) const { ::encode(first, bl); ::encode(last, bl); -- 2.39.5