]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
RadosClient: Fixing potential lock leaks.
authorPavan Rallabhandi <pavan.rallabhandi@sandisk.com>
Wed, 6 Aug 2014 09:40:14 +0000 (15:10 +0530)
committerSage Weil <sage@redhat.com>
Tue, 12 Aug 2014 22:01:00 +0000 (15:01 -0700)
commitbbb1e6a3a84b2d853f935687f01016e7c6a67951
treebc0e7d24c4a6725492c0776917d07d207f72b46e
parente767254ce9a1610f3d640d8157fcb0d1fdf8edf2
RadosClient: Fixing potential lock leaks.

In lookup_pool and pool_delete, a lock is taken
before invoking wait_for_osdmap, but is not
released for the failure case of the call. Fixing the same.

Fixes: #9022
Signed-off-by: Pavan Rallabhandi <pavan.rallabhandi@sandisk.com>
(cherry picked from commit f1aad8bcfc53f982130dbb3243660c3c546c3523)
src/librados/RadosClient.cc