diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-18 15:00:41 +0100 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-18 15:00:41 +0100 |
commit | 5e5e1cd45b6bdd8528a28ef132239ac58a917622 (patch) | |
tree | 414093f687760cd691789237cf923973a1036fcd | |
parent | ffaf286625bfeb8b03968021205c863dbb73333c (diff) | |
download | ceph-5e5e1cd45b6bdd8528a28ef132239ac58a917622.tar.gz |
mon/Session.h: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r-- | src/mon/Session.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mon/Session.h b/src/mon/Session.h index 9fc492a7613..5a2437d2de6 100644 --- a/src/mon/Session.h +++ b/src/mon/Session.h @@ -101,7 +101,7 @@ struct MonSessionMap { if (s->inst.name.is_osd()) { for (multimap<int,MonSession*>::iterator p = by_osd.find(s->inst.name.num()); p->first == s->inst.name.num(); - p++) + ++p) if (p->second == s) { by_osd.erase(p); break; |