]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds/Locker.cc: use !empty() instead of size()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 16:56:12 +0000 (17:56 +0100)
committerGreg Farnum <greg@inktank.com>
Thu, 14 Feb 2013 18:27:39 +0000 (10:27 -0800)
commit3ed962be8c916f68a70c976edd92dcdc265db33a
treeeaa1120318960d8e4bc5b58d1bfd9b2eaf7759a0
parenta65c71cae300365c8f10da26531c5e217e195357
mds/Locker.cc: use !empty() instead of size()

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