]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/osd_types.cc: use !p.tiers.empty() instead of size()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 5 Nov 2013 18:46:09 +0000 (19:46 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 7 Nov 2013 22:31:14 +0000 (23:31 +0100)
commit36ae9eb3214acee1c43e8a560ab20647197b5a47
tree8167af1fff8f7ead46f6d0b500886bc1906c5b6b
parent6b5a96b1f1b2b88f1a57cd84f3de5ae70ed76409
osd/osd_types.cc: use !p.tiers.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/osd/osd_types.cc