X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fmon%2FMonClient.h;h=de6bba574ff1a296fd539e6ccee2290da4414ad2;hb=2a845540123ad00df2e55947b8080306ebdcf410;hp=19aa047c2181fccf0eebfc4e31e0eae540ce587c;hpb=0948533fc3b372aaa92e1cd3da22f2258220e199;p=ceph.git diff --git a/ceph/src/mon/MonClient.h b/ceph/src/mon/MonClient.h index 19aa047c2..de6bba574 100644 --- a/ceph/src/mon/MonClient.h +++ b/ceph/src/mon/MonClient.h @@ -158,7 +158,7 @@ struct MonClientPinger : public Dispatcher, int wait_for_reply(double timeout = 0.0) { std::unique_lock locker{lock}; if (timeout <= 0) { - timeout = cct->_conf->client_mount_timeout; + timeout = std::chrono::duration(cct->_conf.get_val("client_mount_timeout")).count(); } done = false; if (ping_recvd_cond.wait_for(locker,