Skip to content

Commit

Permalink
osd: remove the redundant clear method in consume_map function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
songbaisen committed Nov 24, 2016
1 parent 9cd7e99 commit 9731121
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/osd/OSD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7263,7 +7263,6 @@ void OSD::consume_map()
_remove_pg(&**i);
(*i)->unlock();
}
to_remove.clear();

service.expand_pg_num(service.get_osdmap(), osdmap);

Expand Down

0 comments on commit 9731121

Please sign in to comment.