From: Kefu Chai Date: Thu, 8 Feb 2018 11:08:36 +0000 (+0800) Subject: test/admin_socket_output: no need to create a copy of fs::path X-Git-Tag: v13.0.2~295^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1979b011ae7ba83f29282355b64063ffabecea55;p=ceph.git test/admin_socket_output: no need to create a copy of fs::path Signed-off-by: Kefu Chai --- diff --git a/src/test/admin_socket_output.cc b/src/test/admin_socket_output.cc index 7b2f224f264..89db393f65d 100644 --- a/src/test/admin_socket_output.cc +++ b/src/test/admin_socket_output.cc @@ -76,7 +76,7 @@ bool AdminSocketOutput::init_sockets() { std::cout << "Initialising sockets" << std::endl; for (const auto &x : fs::directory_iterator(socketdir)) { std::cout << x.path() << std::endl; - if (fs::path(x.path()).extension() == ".asok") { + if (x.path().extension() == ".asok") { for (auto &target : targets) { if (std::regex_search(x.path().filename().string(), std::regex(prefix + target + R"(\..*\.asok)"))) {