From: Yehuda Sadeh Date: Tue, 1 Apr 2014 17:51:20 +0000 (-0700) Subject: rgw: reverse logic to identify next part X-Git-Tag: v0.79~29^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1577%2Fhead;p=ceph.git rgw: reverse logic to identify next part Fixes: #7935 The check that identifies whether we need to move to the next part when iterating over an object was reversed. Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index cb82e05e225..e06252b4359 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -681,7 +681,7 @@ void RGWObjManifest::obj_iterator::operator++() stripe_ofs = part_ofs; /* move to the next rule? */ - if (next_rule_iter->second.start_ofs >= stripe_ofs) { + if (stripe_ofs >= next_rule_iter->second.start_ofs) { rule_iter = next_rule_iter; bool last_rule = (next_rule_iter == manifest->rules.end()); if (!last_rule) {