]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PGBackend: ask PG which sort order to use
authorSage Weil <sage@redhat.com>
Mon, 13 Jul 2015 14:51:34 +0000 (10:51 -0400)
committerSage Weil <sage@redhat.com>
Fri, 7 Aug 2015 14:16:00 +0000 (10:16 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PGBackend.cc
src/osd/PGBackend.h

index 3a51fb7d0eb416e11f31be7aa68fa8e596fba086..3b6166b3a6d0898e7b3ec675e6dc19f7fb805bab 100644 (file)
@@ -116,6 +116,7 @@ int PGBackend::objects_list_partial(
       coll,
       _next,
       ghobject_t::get_max(),
+      parent->sort_bitwise(),
       max - ls->size(),
       &objects,
       &_next);
@@ -150,6 +151,7 @@ int PGBackend::objects_list_range(
     coll,
     ghobject_t(start, ghobject_t::NO_GEN, get_parent()->whoami_shard().shard),
     ghobject_t(end, ghobject_t::NO_GEN, get_parent()->whoami_shard().shard),
+    parent->sort_bitwise(),
     INT_MAX,
     &objects,
     NULL);
index 1f54a216336dc941d9165b3cb07a03c8b1fc27b9..faedea896509cc70c3e59d9259b37c63fc84efe7 100644 (file)
      virtual pg_shard_t primary_shard() const = 0;
 
      virtual uint64_t min_peer_features() const = 0;
+     virtual bool sort_bitwise() const = 0;
 
      virtual bool transaction_use_tbl() = 0;
      virtual hobject_t get_temp_recovery_object(eversion_t version,