]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: remove the redundant clear method in consume_map function 10553/head
authorsongbaisen <song.baisen@zte.com.cn>
Thu, 28 Jul 2016 11:26:17 +0000 (19:26 +0800)
committersongbaisen <song.baisen@zte.com.cn>
Thu, 24 Nov 2016 06:18:44 +0000 (14:18 +0800)
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 <song.baisen@zte.com.cn>
src/osd/OSD.cc

index 4bc3b185546647be21482fbdc49dd46238fb80c5..18aac7b9dedc05cf1532bd584996874e8db2c289 100644 (file)
@@ -7263,7 +7263,6 @@ void OSD::consume_map()
     _remove_pg(&**i);
     (*i)->unlock();
   }
-  to_remove.clear();
 
   service.expand_pg_num(service.get_osdmap(), osdmap);