]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-filestore-dump.cc: use empty() instead of size()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 7 May 2013 14:58:33 +0000 (16:58 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 10 May 2013 17:19:58 +0000 (19:19 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/tools/ceph-filestore-dump.cc

index 9d89e81fd09aa56f740bd5f51b760d00622bd7ae..d1ec12a4f25eb2ec74a9cc1cdea40a4260580204 100644 (file)
@@ -600,7 +600,7 @@ int export_file(ObjectStore *store, coll_t cid, hobject_t &obj)
   if (ret)
     return ret;
 
-  if (out.size() > 0) {
+  if (!out.empty()) {
     omap_section oms(out);
     ret = write_section(TYPE_OMAP, oms, file_fd);
     if (ret)