summaryrefslogtreecommitdiff
path: root/src/mongo/s/catalog_cache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/catalog_cache.cpp')
-rw-r--r--src/mongo/s/catalog_cache.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mongo/s/catalog_cache.cpp b/src/mongo/s/catalog_cache.cpp
index 4c261b8b9cb..0bfb5078009 100644
--- a/src/mongo/s/catalog_cache.cpp
+++ b/src/mongo/s/catalog_cache.cpp
@@ -32,7 +32,6 @@
#include <fmt/format.h>
#include "mongo/bson/bsonobjbuilder.h"
-#include "mongo/db/catalog_shard_feature_flag_gen.h"
#include "mongo/db/curop.h"
#include "mongo/db/query/collation/collator_factory_interface.h"
#include "mongo/db/repl/optime_with.h"
@@ -1006,10 +1005,7 @@ CatalogCache::IndexCache::LookupResult CatalogCache::IndexCache::_lookupIndexes(
"timeInStore"_attr = previousVersion);
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();