]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/rgw_usage.cc use empty() to check for emptiness
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 17:45:31 +0000 (18:45 +0100)
committerGreg Farnum <greg@inktank.com>
Thu, 14 Feb 2013 18:27:40 +0000 (10:27 -0800)
commita30017fbb94fd0668cf23737f51a6d7107a088dd
tree9285350336fe9778a896a45f1c720f22589b5cb6
parentb14994e51b73b66a13d4f16f620d2b170ea3d670
rgw/rgw_usage.cc use empty() to check for emptiness

Use !empty() instead of 'size()' to check for emptiness for
performance reasons.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_usage.cc