]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds/MDS.cc: use !empty() instead of size() to check for emptiness
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 16:59:09 +0000 (17:59 +0100)
committerGreg Farnum <greg@inktank.com>
Thu, 14 Feb 2013 18:27:39 +0000 (10:27 -0800)
commitaa2ae6a26954283b120d0b985ecb03e79d91083d
tree9f5b862c76d50f51bbf339c1a50a93fbcb57f011
parent1755fd97155f121b12f8d2c447123d839c385d4b
mds/MDS.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/mds/MDS.cc