From d3158bf11ea1ea4934b12f48f6c373d912072c31 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Fri, 6 Mar 2020 19:13:46 -0800 Subject: [PATCH] mds: simplify for loop construction Signed-off-by: Patrick Donnelly --- src/mds/MDBalancer.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mds/MDBalancer.cc b/src/mds/MDBalancer.cc index 57fa374b0b5..a44877d21c3 100644 --- a/src/mds/MDBalancer.cc +++ b/src/mds/MDBalancer.cc @@ -113,8 +113,7 @@ void MDBalancer::handle_export_pins(void) } bool remove = true; - auto&& dfls = in->get_dirfrags(); - for (auto dir : dfls) { + for (auto&& dir : in->get_dirfrags()) { if (!dir->is_auth()) continue; -- 2.39.5