]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
PGMonitor.cc: use !empty() instead of size() to check for emptiness
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 13:42:47 +0000 (14:42 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 13:42:47 +0000 (14:42 +0100)
commit0b3123429307d81a514586436999186dcda27ba9
tree67a79a0f9189f620d22a33dfd2bd227f6fff6766
parent6f0175e5a95a6c1d7bc7baac6381256ea80f0f52
PGMonitor.cc: use !empty() instead of size() to check for emptiness

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/PGMonitor.cc