]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_rados.cc: use empty() instead of checking for size() > 0
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 12 Jul 2013 10:08:52 +0000 (12:08 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 12 Jul 2013 10:08:52 +0000 (12:08 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_rados.cc

index 3459683a8d7de71406c9142a50dc815b672b8141..b3e297effa4be332d1eaaa5a4fbe0795fe472183 100644 (file)
@@ -3884,8 +3884,7 @@ int RGWRados::get_obj(void *ctx, RGWObjVersionTracker *objv_tracker, void **hand
   else
     len = end - ofs + 1;
 
-  if (astate->has_manifest &&
-      astate->manifest.objs.size() > 0) {
+  if (astate->has_manifest && !astate->manifest.objs.empty()) {
     /* now get the relevant object part */
     map<uint64_t, RGWObjManifestPart>::iterator iter = astate->manifest.objs.upper_bound(ofs);
     /* we're now pointing at the next part (unless the first part starts at a higher ofs),