]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: handle (and ignore) MOSDMap; do not leak
authorSage Weil <sage@redhat.com>
Tue, 19 Aug 2014 22:18:24 +0000 (15:18 -0700)
committerJohn Spray <john.spray@redhat.com>
Mon, 25 Aug 2014 00:34:19 +0000 (01:34 +0100)
We return true, so we should drop the MOSDMap ref.

Signed-off-by: Sage Weil <sage@redhat.com>
src/librados/RadosClient.cc

index 9ccefc60fdf16ab564022ce4913e8dbed1edb51f..356588170289dac6d0c17161ebbe56b04d46e27a 100644 (file)
@@ -379,6 +379,7 @@ bool librados::RadosClient::_dispatch(Message *m)
     lock.Lock();
     cond.Signal();
     lock.Unlock();
+    m->put();
     break;
 
   case CEPH_MSG_MDS_MAP: