]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
FileStore.cc: use if(!empty()) instead of if(size())
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 26 Feb 2013 10:16:56 +0000 (11:16 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 26 Feb 2013 10:16:56 +0000 (11:16 +0100)
commita2d842f97b526ec0e7a05495c823166e691b134e
treea08febe0f218623eb88a107c418ab144191c81d8
parente3b27b7b67e138cec150380ae325d24828af30ac
FileStore.cc: use if(!empty()) instead of if(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/os/FileStore.cc