]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: need to size values read from a bufferlist
authorGreg Farnum <gregf@hq.newdream.net>
Thu, 13 May 2010 19:04:43 +0000 (12:04 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Mon, 2 Aug 2010 17:39:56 +0000 (10:39 -0700)
src/mds/Locker.cc

index aef61c6a42d733140e9662d8b136c41f153afabc..b88c1c1e4c2a77560343a3d94962f237392d066c 100644 (file)
@@ -1986,7 +1986,7 @@ bool Locker::_do_cap_update(CInode *in, Capability *cap,
   }
 
   if (dirty & CEPH_CAP_FLOCK_EXCL) {
-    int num_locks;
+    int32_t num_locks;
     bufferlist::iterator bli = m->flockbl.begin();
     ::decode(num_locks, bli);
     for ( int i=0; i < num_locks; ++i) {