summaryrefslogtreecommitdiff
path: root/src/mongo/db/views
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2017-10-23 17:42:01 -0400
committerJudah Schvimer <judah@mongodb.com>2017-10-24 17:00:31 -0400
commit01d212386db721d5e1ff6da3c17621180ab723cc (patch)
treeeab4622f66096ff64db9893f9254513ee6df9585 /src/mongo/db/views
parent86bcd6b0244c188386e6495fbea6ab0dbca01714 (diff)
downloadmongo-01d212386db721d5e1ff6da3c17621180ab723cc.tar.gz
SERVER-31607 move validateFeaturesAsMaster out of FeatureCompatibility struct
Diffstat (limited to 'src/mongo/db/views')
-rw-r--r--src/mongo/db/views/view_catalog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/views/view_catalog.cpp b/src/mongo/db/views/view_catalog.cpp
index ec654514a1b..7938084d9f5 100644
--- a/src/mongo/db/views/view_catalog.cpp
+++ b/src/mongo/db/views/view_catalog.cpp
@@ -313,7 +313,7 @@ StatusWith<stdx::unordered_set<NamespaceString>> ViewCatalog::_validatePipeline_
"$changeStream cannot be used in a view definition"};
}
- if (serverGlobalParams.featureCompatibility.validateFeaturesAsMaster.load() &&
+ if (serverGlobalParams.validateFeaturesAsMaster.load() &&
!serverGlobalParams.featureCompatibility.isFullyUpgradedTo36()) {
auto status = validInViewUnder34FeatureCompatibility(expCtx, *pipelineStatus.getValue());
if (!status.isOK()) {