]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: reverse logic to identify next part 1577/head
authorYehuda Sadeh <yehuda@inktank.com>
Tue, 1 Apr 2014 17:51:20 +0000 (10:51 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Tue, 1 Apr 2014 17:52:06 +0000 (10:52 -0700)
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 <yehuda@inktank.com>
src/rgw/rgw_rados.cc

index cb82e05e225df38289a1c81bff10ded0ef5698b5..e06252b43597c6d1ae09dd4181bbb064f90cd284 100644 (file)
@@ -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) {