summaryrefslogtreecommitdiff
path: root/src/mongo/s/config_server_catalog_cache_loader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/config_server_catalog_cache_loader.cpp')
-rw-r--r--src/mongo/s/config_server_catalog_cache_loader.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mongo/s/config_server_catalog_cache_loader.cpp b/src/mongo/s/config_server_catalog_cache_loader.cpp
index 3be6957b8c6..2fb23a43bf9 100644
--- a/src/mongo/s/config_server_catalog_cache_loader.cpp
+++ b/src/mongo/s/config_server_catalog_cache_loader.cpp
@@ -34,7 +34,6 @@
#include <memory>
-#include "mongo/db/catalog_shard_feature_flag_gen.h"
#include "mongo/db/client.h"
#include "mongo/db/operation_context.h"
#include "mongo/db/repl/replication_coordinator.h"
@@ -59,10 +58,7 @@ CollectionAndChangedChunks getChangedChunks(OperationContext* opCtx,
const NamespaceString& nss,
ChunkVersion sinceVersion) {
const auto readConcern = [&]() -> repl::ReadConcernArgs {
- if (serverGlobalParams.clusterRole == ClusterRole::ConfigServer &&
- !gFeatureFlagConfigServerAlwaysShardRemote.isEnabledAndIgnoreFCV()) {
- // When the feature flag is on, the config server may read from a secondary which may
- // need to wait for replication, so we should use afterClusterTime.
+ if (serverGlobalParams.clusterRole == ClusterRole::ConfigServer) {
return {repl::ReadConcernLevel::kSnapshotReadConcern};
} else {
const auto vcTime = VectorClock::get(opCtx)->getTime();