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
{
assert(lock.is_locked());
+ if (state != CONNECTED) {
+ return -ENOTCONN;
+ }
+
utime_t timeout;
if (cct->_conf->rados_mon_op_timeout > 0)
timeout.set_from_double(cct->_conf->rados_mon_op_timeout);