diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-07-12 12:08:52 +0200 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-07-12 12:08:52 +0200 |
commit | 22e0dbbd0e6b6a0fc3b49018d0a5d91ce54aca1b (patch) | |
tree | 7a2e975ba349f48f3717e732f613b2a8bf35f031 | |
parent | ea0fcfacb32f3a0fe05ed7167e4a8675647e8ef0 (diff) | |
download | ceph-22e0dbbd0e6b6a0fc3b49018d0a5d91ce54aca1b.tar.gz |
rgw/rgw_rados.cc: use empty() instead of checking for size() > 0
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r-- | src/rgw/rgw_rados.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 3459683a8d7..b3e297effa4 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -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), |