]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librados: fix MWatchNotify leak
authorSage Weil <sage@inktank.com>
Tue, 13 Aug 2013 20:14:59 +0000 (13:14 -0700)
committerSage Weil <sage@inktank.com>
Tue, 20 Aug 2013 15:11:03 +0000 (08:11 -0700)
commit47c89497b7f69cbf1557cd05b89837c388e2ba2f
tree098da395a7dca9cfd94947c3669641bce6d5a3a2
parentb3a9a8c4e5edff5431d8da71033047eced6bf985
librados: fix MWatchNotify leak

Do not leak the message if the watcher is not registered.  Also, simplify
this block.

Fixes (part of): #5949
Backport: dumpling, cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
(cherry picked from commit 6f5d8036f3e70c5e30edf7e36fb8ff9a56197f60)
src/librados/RadosClient.cc