]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cls_kvs.cc: use !empty() instead of 'size() > 0' to check for emptiness
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 16:38:56 +0000 (17:38 +0100)
committerGreg Farnum <greg@inktank.com>
Thu, 14 Feb 2013 18:27:38 +0000 (10:27 -0800)
commitfc0a108773e0e4c5e9a17422825de986d2256e9a
tree9d80859da6328b0e32806ef7f105b44bc7abf28a
parent30fe1077a8b5d07c1970c14990c8163cb11733b2
cls_kvs.cc: use !empty() instead of 'size() > 0' 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/key_value_store/cls_kvs.cc