summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorCheahuychou Mao <cheahuychou.mao@mongodb.com>2020-07-25 16:13:11 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-07-28 15:11:46 +0000
commit70e8825df3a7a6f3e6384312497c5b852d2d7f1a (patch)
tree4b3bf6daa1ddcec67369bb3443f2c34c1100874e /src/mongo
parent9dbe273c291d6fe6105bfc57c1376577881a26b2 (diff)
downloadmongo-70e8825df3a7a6f3e6384312497c5b852d2d7f1a.tar.gz
SERVER-49427 Remove unused function declarations in MetadataManager and CollectionShardingRuntime
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/db/s/collection_sharding_runtime.h32
-rw-r--r--src/mongo/db/s/metadata_manager.h2
-rw-r--r--src/mongo/db/s/migration_util_test.cpp8
3 files changed, 0 insertions, 42 deletions
diff --git a/src/mongo/db/s/collection_sharding_runtime.h b/src/mongo/db/s/collection_sharding_runtime.h
index 0b23f64118a..d6e16f0f024 100644
--- a/src/mongo/db/s/collection_sharding_runtime.h
+++ b/src/mongo/db/s/collection_sharding_runtime.h
@@ -141,31 +141,6 @@ public:
OperationContext* opCtx, ShardingMigrationCriticalSection::Operation op);
/**
- * Schedules any documents in `range` for immediate cleanup iff no running queries can depend
- * on them, and adds the range to the list of ranges being received.
- *
- * Returns a future that will be resolved when the deletion has completed or failed.
- */
- SharedSemiFuture<void> beginReceive(ChunkRange const& range);
-
- /*
- * Removes `range` from the list of ranges being received, and schedules any documents in the
- * range for immediate cleanup. Does not block.
- */
- void forgetReceive(const ChunkRange& range);
-
- /**
- * Clears the list of chunks that are being received as a part of an incoming migration.
- */
- void clearReceivingChunks();
-
- /**
- * Returns a range _not_ owned by this shard that starts no lower than the specified
- * startingFrom key value, if any, or boost::none if there is no such range.
- */
- boost::optional<ChunkRange> getNextOrphanRange(BSONObj const& startingFrom);
-
- /**
* Schedules documents in `range` for cleanup after any running queries that may depend on them
* have terminated. Does not block. Fails if range overlaps any current local shard chunk.
* Passed kDelayed, an additional delay (configured via server parameter orphanCleanupDelaySecs)
@@ -188,13 +163,6 @@ public:
const UUID& collectionUuid,
ChunkRange orphanRange);
- /**
- * Appends information about any chunks for which incoming migration has been requested, but the
- * shard hasn't yet synchronised with the config server on whether that migration actually
- * committed.
- */
- void appendPendingReceiveChunks(BSONArrayBuilder* builder);
-
std::uint64_t getNumMetadataManagerChanges_forTest() {
return _numMetadataManagerChanges;
}
diff --git a/src/mongo/db/s/metadata_manager.h b/src/mongo/db/s/metadata_manager.h
index 3685f4adf8b..ac441a8459c 100644
--- a/src/mongo/db/s/metadata_manager.h
+++ b/src/mongo/db/s/metadata_manager.h
@@ -151,8 +151,6 @@ public:
boost::optional<SharedSemiFuture<void>> trackOrphanedDataCleanup(
ChunkRange const& orphans) const;
- boost::optional<ChunkRange> getNextOrphanRange(BSONObj const& from) const;
-
private:
// Management of the _metadata list is implemented in RangePreserver
friend class RangePreserver;
diff --git a/src/mongo/db/s/migration_util_test.cpp b/src/mongo/db/s/migration_util_test.cpp
index 82ae3514a64..01557c766db 100644
--- a/src/mongo/db/s/migration_util_test.cpp
+++ b/src/mongo/db/s/migration_util_test.cpp
@@ -58,14 +58,6 @@ UUID getCollectionUuid(OperationContext* opCtx, const NamespaceString& nss) {
return autoColl.getCollection()->uuid();
}
-void addRangeToReceivingChunks(OperationContext* opCtx,
- const NamespaceString& nss,
- const ChunkRange& range) {
- AutoGetCollection autoColl(opCtx, nss, MODE_IS);
-
- std::ignore = CollectionShardingRuntime::get(opCtx, nss)->beginReceive(range);
-}
-
template <typename ShardKey>
RangeDeletionTask createDeletionTask(const NamespaceString& nss,
const UUID& uuid,