mirror of
https://github.com/ceph/ceph
synced 2024-12-18 17:37:38 +00:00
librados/RadosClient.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
5ac012acfd
commit
7332796023
@ -351,7 +351,7 @@ int librados::RadosClient::pool_list(std::list<std::string>& v)
|
||||
Mutex::Locker l(lock);
|
||||
for (map<int64_t,pg_pool_t>::const_iterator p = osdmap.get_pools().begin();
|
||||
p != osdmap.get_pools().end();
|
||||
p++)
|
||||
++p)
|
||||
v.push_back(osdmap.get_pool_name(p->first));
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user