summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/shard_server_op_observer.cpp
diff options
context:
space:
mode:
authorPierlauro Sciarelli <pierlauro.sciarelli@mongodb.com>2020-06-22 16:02:00 +0200
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-23 17:44:42 +0000
commit3c14c24170a43252ff481c5cffad9014d5a93db2 (patch)
treecc0be9ef6a3a8f575a03538bd9d507303d5313ca /src/mongo/db/s/shard_server_op_observer.cpp
parent5958a1302055a6e500ec530fc166c0b7ba4b58bd (diff)
downloadmongo-3c14c24170a43252ff481c5cffad9014d5a93db2.tar.gz
SERVER-48326 Complete TODO listed in SERVER-47701
Diffstat (limited to 'src/mongo/db/s/shard_server_op_observer.cpp')
-rw-r--r--src/mongo/db/s/shard_server_op_observer.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/db/s/shard_server_op_observer.cpp b/src/mongo/db/s/shard_server_op_observer.cpp
index a63318262b6..5190133a690 100644
--- a/src/mongo/db/s/shard_server_op_observer.cpp
+++ b/src/mongo/db/s/shard_server_op_observer.cpp
@@ -235,9 +235,6 @@ void ShardServerOpObserver::onInserts(OperationContext* opCtx,
std::vector<InsertStatement>::const_iterator begin,
std::vector<InsertStatement>::const_iterator end,
bool fromMigrate) {
- // TODO (SERVER-47701): As part of enabling transition from a replica-set to sharded cluster,
- // without requiring application downtime, these checks need to be revisited. Ideally this code
- // should not be reached upon direct writes to a shard.
const auto metadata = CollectionShardingRuntime::get(opCtx, nss)->getCurrentMetadataIfKnown();
for (auto it = begin; it != end; ++it) {
@@ -392,9 +389,6 @@ void ShardServerOpObserver::onUpdate(OperationContext* opCtx, const OplogUpdateE
}
}
- // TODO (SERVER-47701): As part of enabling transition from a replica-set to sharded cluster,
- // without requiring application downtime, these checks need to be revisited. Ideally this code
- // should not be reached upon direct writes to a shard.
auto* const csr = CollectionShardingRuntime::get(opCtx, args.nss);
const auto metadata = csr->getCurrentMetadataIfKnown();
if (metadata && metadata->isSharded()) {