From: songbaisen Date: Thu, 28 Jul 2016 11:26:17 +0000 (+0800) Subject: osd: remove the redundant clear method in consume_map function X-Git-Tag: v11.1.0~151^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9731121fde64ec8ee74454e8648e773fa7bb15ed;p=ceph.git 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 --- 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);