From 9731121fde64ec8ee74454e8648e773fa7bb15ed Mon Sep 17 00:00:00 2001 From: songbaisen Date: Thu, 28 Jul 2016 19:26:17 +0800 Subject: [PATCH] osd: remove the redundant clear method in consume_map function In the above loop before this to_remove to clear,we have remove all the element.So this clear method is redundant. Signed-off-by: song baisen --- src/osd/OSD.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 4bc3b18554664..18aac7b9dedc0 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -7263,7 +7263,6 @@ void OSD::consume_map() _remove_pg(&**i); (*i)->unlock(); } - to_remove.clear(); service.expand_pg_num(service.get_osdmap(), osdmap); -- 2.47.3