summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Farnum <greg@inktank.com>2013-01-15 13:29:40 -0800
committerSage Weil <sage@inktank.com>2013-01-21 08:21:13 -0800
commite461f0966aec5f35b8bf9aa4281be82dfddb2a42 (patch)
tree8d33b108270fecaec266144d0e5483ab6f6159ac
parent2491f976e4cd6eca5c30f7c184038364e4fe1873 (diff)
downloadceph-e461f0966aec5f35b8bf9aa4281be82dfddb2a42.tar.gz
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 <sage@inktank.com> Signed-off-by: Greg Farnum <greg@inktank.com>
-rw-r--r--src/mds/mdstypes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mds/mdstypes.h b/src/mds/mdstypes.h
index 22e754eb2a1..74b8571e0f3 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);