]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
OSD.cc: use empty() instead of size() to check for emptiness
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 14:03:31 +0000 (15:03 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 14:03:31 +0000 (15:03 +0100)
commit5d899969c225dbc7814dbf4e704b98c563765afe
tree9ff7c7ddb9f34bb09b04a7318216889192899863
parentf94f79793d27f34abb5320d52e760b3882665bfe
OSD.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().

This replaces also some size() >=/== checks.

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