]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix add_source_info
authorSage Weil <sage@redhat.com>
Wed, 8 Feb 2017 21:46:26 +0000 (16:46 -0500)
committerSage Weil <sage@redhat.com>
Sat, 11 Feb 2017 15:45:16 +0000 (10:45 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc
src/osd/PG.h

index 3d61b7d3d1e44f3a7f3f35d829fdfe0a43048d41..8757d28c5efb811b717f76fae67e0850799fc4da 100644 (file)
@@ -476,7 +476,7 @@ bool PG::search_for_missing(
 {
   unsigned num_unfound_before = missing_loc.num_unfound();
   bool found_missing = missing_loc.add_source_info(
-    from, oinfo, omissing, get_sort_bitwise(), ctx->handle);
+    from, oinfo, omissing, ctx->handle);
   if (found_missing && num_unfound_before != missing_loc.num_unfound())
     publish_stats_to_osd();
   if (found_missing &&
@@ -536,7 +536,6 @@ bool PG::MissingLoc::add_source_info(
   pg_shard_t fromosd,
   const pg_info_t &oinfo,
   const pg_missing_t &omissing,
-  bool sort_bitwise,
   ThreadPool::TPHandle* handle)
 {
   bool found_missing = false;
@@ -559,7 +558,7 @@ bool PG::MissingLoc::add_source_info(
       continue;
     }
     if (!oinfo.last_backfill.is_max() &&
-       oinfo.last_backfill_bitwise != sort_bitwise) {
+       !oinfo.last_backfill_bitwise) {
       ldout(pg->cct, 10) << "search_for_missing " << soid << " " << need
                         << " also missing on osd." << fromosd
                         << " (last_backfill " << oinfo.last_backfill
@@ -1795,7 +1794,7 @@ void PG::activate(ObjectStore::Transaction& t,
         missing_loc.add_batch_sources_info(complete_shards, ctx->handle);
       } else {
         missing_loc.add_source_info(pg_whoami, info, pg_log.get_missing(),
-                                   get_sort_bitwise(), ctx->handle);
+                                   ctx->handle);
         for (set<pg_shard_t>::iterator i = actingbackfill.begin();
             i != actingbackfill.end();
             ++i) {
@@ -1807,7 +1806,6 @@ void PG::activate(ObjectStore::Transaction& t,
            *i,
            peer_info[*i],
            peer_missing[*i],
-           get_sort_bitwise(),
             ctx->handle);
         }
       }
index 807efc56c5fed5bc1f6dc735f242c5d191ff5f9c..a6c13db3c6b583d8ea5d3ade463341b19b2490f2 100644 (file)
@@ -427,7 +427,6 @@ public:
       pg_shard_t source,           ///< [in] source
       const pg_info_t &oinfo,      ///< [in] info
       const pg_missing_t &omissing, ///< [in] (optional) missing
-      bool sort_bitwise,            ///< [in] local sort bitwise (vs nibblewise)
       ThreadPool::TPHandle* handle  ///< [in] ThreadPool handle
       ); ///< @return whether a new object location was discovered