]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
LFNIndex.cc: use !holes.empty() instead of 'size() > 0'
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 13:59:53 +0000 (14:59 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 13:59:53 +0000 (14:59 +0100)
commitf94f79793d27f34abb5320d52e760b3882665bfe
tree3b5187defffae555ccad8763963172749a7cc8be
parent4893def5690f811e2764c3083a63a6093e09a80e
LFNIndex.cc: use !holes.empty() instead of 'size() > 0'

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/os/LFNIndex.cc