diff options
author | David Storch <david.storch@10gen.com> | 2016-09-14 18:02:10 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2016-09-20 17:40:43 -0400 |
commit | 2ac0e07e7f82406e989fa272c68d1205ced81d78 (patch) | |
tree | eece2e1323d243c48e10304181a8678884035acd /src/mongo/db/views | |
parent | 585edf79040ed44db42e174b8659ca7290fa48cf (diff) | |
download | mongo-2ac0e07e7f82406e989fa272c68d1205ced81d78.tar.gz |
SERVER-25969 make slaves and secondaries always use BSON 1.1 validation
This allows secondaries and slaves to sync NumberDecimal even while
in featureCompatibilityVersion:"3.2" mode.
Diffstat (limited to 'src/mongo/db/views')
-rw-r--r-- | src/mongo/db/views/view_catalog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/views/view_catalog.cpp b/src/mongo/db/views/view_catalog.cpp index 68880a1a70c..a8be7f54290 100644 --- a/src/mongo/db/views/view_catalog.cpp +++ b/src/mongo/db/views/view_catalog.cpp @@ -227,8 +227,8 @@ Status ViewCatalog::createView(OperationContext* txn, const BSONObj& collation) { stdx::lock_guard<stdx::mutex> lk(_mutex); - if (serverGlobalParams.featureCompatibilityVersion.load() == - ServerGlobalParams::FeatureCompatibilityVersion_32) { + if (serverGlobalParams.featureCompatibility.version.load() == + ServerGlobalParams::FeatureCompatibility::Version::k32) { return Status(ErrorCodes::CommandNotSupported, "Cannot create view when the featureCompatibilityVersion is 3.2. See " "http://dochub.mongodb.org/core/3.4-feature-compatibility."); @@ -259,8 +259,8 @@ Status ViewCatalog::modifyView(OperationContext* txn, const BSONArray& pipeline) { stdx::lock_guard<stdx::mutex> lk(_mutex); - if (serverGlobalParams.featureCompatibilityVersion.load() == - ServerGlobalParams::FeatureCompatibilityVersion_32) { + if (serverGlobalParams.featureCompatibility.version.load() == + ServerGlobalParams::FeatureCompatibility::Version::k32) { return Status(ErrorCodes::CommandNotSupported, "Cannot modify view when the featureCompatibilityVersion is 3.2. See " "http://dochub.mongodb.org/core/3.4-feature-compatibility."); |