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