]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PrimaryLogPG: unconditionally set PGNLS next to hobject 13321/head
authorSage Weil <sage@redhat.com>
Wed, 8 Feb 2017 22:03:26 +0000 (17:03 -0500)
committerSage Weil <sage@redhat.com>
Sat, 11 Feb 2017 15:45:17 +0000 (10:45 -0500)
Drop nibblewise workaround.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PrimaryLogPG.cc

index be16d53da9267a7eda78b872bddd0d5ecf95f24c..977a0dbca8d380adaa041940e4aa2552eb24a81c 100644 (file)
@@ -1235,15 +1235,9 @@ void PrimaryLogPG::do_pg_op(OpRequestRef op)
            ls_iter == sentries.end()) {
          result = 1;
 
-         if (get_osdmap()->test_flag(CEPH_OSDMAP_SORTBITWISE)) {
-           // Set response.handle to the start of the next PG
-           // according to the object sort order.  Only do this if
-           // the cluster is in bitwise mode; with legacy nibblewise
-           // sort PGs don't always cover contiguous ranges of the
-           // hash order.
-           response.handle = info.pgid.pgid.get_hobj_end(
-             pool.info.get_pg_num());
-         }
+         // Set response.handle to the start of the next PG according
+         // to the object sort order.
+         response.handle = info.pgid.pgid.get_hobj_end(pool.info.get_pg_num());
        } else {
           response.handle = next;
         }