]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix byte_range_t ctor
authorGreg Farnum <greg@inktank.com>
Tue, 15 Jan 2013 21:29:40 +0000 (13:29 -0800)
committerSage Weil <sage@inktank.com>
Mon, 21 Jan 2013 16:21:13 +0000 (08:21 -0800)
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>
src/mds/mdstypes.h

index 22e754eb2a14ef2db5117cf5f9603c8ebff55d75..74b8571e0f33f2bb6f27d73f51dface068a289d9 100644 (file)
@@ -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);