]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mds/MDBalancer.cc
import quincy beta 17.1.0
[ceph.git] / ceph / src / mds / MDBalancer.cc
index 5ea313560da317c32758fae118f31314f5511fa5..cb63f60544426e43c351e85beccf11ca832cd603 100644 (file)
@@ -31,9 +31,8 @@
 #include <fstream>
 #include <vector>
 #include <map>
-using std::map;
-using std::vector;
-using std::chrono::duration_cast;
+
+using namespace std;
 
 #include "common/config.h"
 #include "common/errno.h"
@@ -240,7 +239,7 @@ void MDBalancer::tick()
   if (mds->get_nodeid() == 0
       && mds->is_active()
       && bal_interval > 0
-      && duration_cast<chrono::seconds>(now - last_heartbeat).count() >= bal_interval
+      && chrono::duration_cast<chrono::seconds>(now - last_heartbeat).count() >= bal_interval
       && (num_bal_times || (bal_max_until >= 0 && mds->get_uptime().count() > bal_max_until))) {
     last_heartbeat = now;
     send_heartbeat();