]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/tools/cephfs_mirror/Mirror.cc
import ceph quincy 17.2.4
[ceph.git] / ceph / src / tools / cephfs_mirror / Mirror.cc
index c20a1fc659b3aec75c188272cd865c1f65bf15db..890805764c048d86ecb26c817add6aaaf6e5d9af 100644 (file)
@@ -238,7 +238,7 @@ int Mirror::init_mon_client() {
     return r;
   }
 
-  r = m_monc->authenticate(m_cct->_conf->client_mount_timeout);
+  r = m_monc->authenticate(std::chrono::duration<double>(m_cct->_conf.get_val<std::chrono::seconds>("client_mount_timeout")).count());
   if (r < 0) {
     derr << ": failed to authenticate to monitor: " << cpp_strerror(r) << dendl;
     return r;