From: Greg Farnum Date: Tue, 15 Jan 2013 21:29:40 +0000 (-0800) Subject: mds: fix byte_range_t ctor X-Git-Tag: v0.57~155 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e461f0966aec5f35b8bf9aa4281be82dfddb2a42;p=ceph.git 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 --- diff --git a/src/mds/mdstypes.h b/src/mds/mdstypes.h index 22e754eb2a14..74b8571e0f33 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);