Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rgw/rgw_rados.cc: use empty() instead of checking for size() > 0

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
(cherry picked from commit 22e0dbb)
  • Loading branch information...
commit 70b0382418b3760524083f1d4e8c224626b78ef8 1 parent 8fb15ed
@dalgaaf dalgaaf authored yehudasa committed
Showing with 1 addition and 2 deletions.
  1. +1 −2  src/rgw/rgw_rados.cc
View
3  src/rgw/rgw_rados.cc
@@ -2610,8 +2610,7 @@ int RGWRados::get_obj(void *ctx, void **handle, rgw_obj& obj,
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),
Please sign in to comment.
Something went wrong with that request. Please try again.