]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librados: rectify the guard in RadosClient::wait_for_osdmap(). 3828/head
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Thu, 29 Jan 2015 17:19:16 +0000 (18:19 +0100)
committerLoic Dachary <ldachary@redhat.com>
Fri, 27 Feb 2015 18:23:39 +0000 (19:23 +0100)
commit420ea03aa3cd52bd035d31ba111c3d6d0745352d
treed8a3aa00a5baa6390b13cf39ec9dff1ff722b4cd
parent1b2667211f90a1b630d2ddffe99b0fb00bb3c07c
librados: rectify the guard in RadosClient::wait_for_osdmap().

RadosClient::wait_for_osdmap() did not signalize lack of connection
via -ENOTCONN error code when the Objecter instance was allocated.
The proper way is to check the connection state explicitly.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit 34473f78f101d87d2606e0e7112682a47ff24830)

Conflicts:
src/librados/RadosClient.cc
        the modified guard was not present: add the new guard instead
        of modifying it
src/librados/RadosClient.cc