summaryrefslogtreecommitdiffstats
path: root/src/mds/Beacon.cc
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2021-08-11 05:46:14 +0200
committerKefu Chai <kchai@redhat.com>2021-08-13 06:21:39 +0200
commit9b29dc55a3adbd71d488901aed4d5f7f3bc7d558 (patch)
tree098fef34c881ccad8f77cdf1bdcec6e712bc7d88 /src/mds/Beacon.cc
parenttest/librbd: build without "using namespace std" (diff)
downloadceph-9b29dc55a3adbd71d488901aed4d5f7f3bc7d558.tar.xz
ceph-9b29dc55a3adbd71d488901aed4d5f7f3bc7d558.zip
mds: build without "using namespace std"
* add "std::" prefix in headers * add "using" declarations in .cc files. so we don't rely on "using namespace std" in one or more included headers. Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/mds/Beacon.cc')
-rw-r--r--src/mds/Beacon.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mds/Beacon.cc b/src/mds/Beacon.cc
index 6548970ec87..766e4c5d267 100644
--- a/src/mds/Beacon.cc
+++ b/src/mds/Beacon.cc
@@ -34,6 +34,9 @@
#undef dout_prefix
#define dout_prefix *_dout << "mds.beacon." << name << ' '
+using std::map;
+using std::string;
+
using namespace std::chrono_literals;
Beacon::Beacon(CephContext *cct, MonClient *monc, std::string_view name)
@@ -360,7 +363,7 @@ void Beacon::notify_health(MDSRank const *mds)
//
// Detect clients failing to advance their old_client_tid
{
- set<Session*> sessions;
+ std::set<Session*> sessions;
mds->sessionmap.get_client_session_set(sessions);
const auto min_caps_working_set = g_conf().get_val<uint64_t>("mds_min_caps_working_set");