]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rados.cc: use omap.empty() instead of size() to check for emptiness
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 14:36:29 +0000 (15:36 +0100)
committerGreg Farnum <greg@inktank.com>
Thu, 14 Feb 2013 18:26:22 +0000 (10:26 -0800)
commit95eda3267d79d3e2b6154883ede0faaa634c70d4
tree65c07d35dbb0b7abad334b19646516d96d7e76e6
parent4950a1b3b80ab3eb81abae31ec9bb79b06b363a9
rados.cc: use omap.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/rados.cc