From 464bd6b95dbcaf9bfd4c47338075a0bf36cf3093 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 13 Jul 2015 10:51:34 -0400 Subject: [PATCH] osd/PGBackend: ask PG which sort order to use Signed-off-by: Sage Weil --- src/osd/PGBackend.cc | 2 ++ src/osd/PGBackend.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/osd/PGBackend.cc b/src/osd/PGBackend.cc index 3a51fb7d0eb..3b6166b3a6d 100644 --- a/src/osd/PGBackend.cc +++ b/src/osd/PGBackend.cc @@ -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); diff --git a/src/osd/PGBackend.h b/src/osd/PGBackend.h index 1f54a216336..faedea89650 100644 --- a/src/osd/PGBackend.h +++ b/src/osd/PGBackend.h @@ -205,6 +205,7 @@ 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, -- 2.47.3