]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
OSDMonitor.cc: use !empty() instead of size()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 13:41:04 +0000 (14:41 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 13:41:04 +0000 (14:41 +0100)
commit6f0175e5a95a6c1d7bc7baac6381256ea80f0f52
treed4b755da8a974f699f74264ee7cb7ef65c2d6ba2
parent8fcd31f6cc6f2993b981ec139307fe7d47712dbb
OSDMonitor.cc: use !empty() instead of size()

Use empty() since it should be prefered as it has, following the
standard, a constant time complexity regardless of the containter
type. The same is not guaranteed for size().

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mon/OSDMonitor.cc