]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
KeyValueStore: use !empty() instead of size()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 19 Feb 2014 17:03:45 +0000 (18:03 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 19 Feb 2014 17:03:45 +0000 (18:03 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/os/KeyValueStore.cc

index 2d7bd3fd0f523a4cbfbec21c0f982be7228a6ee0..56ce53272cb5b80f82c1398e18b74ba674dc2a97 100644 (file)
@@ -2621,7 +2621,7 @@ int KeyValueStore::omap_get_header(coll_t c, const ghobject_t &hoid,
     return r;
   }
 
-  if (got.size()) {
+  if (!got.empty()) {
     assert(got.size() == 1);
     bl->swap(got.begin()->second);
   }