diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-08-29 18:50:25 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-08-31 14:18:42 -0400 |
commit | f41c549e109e16a6400eb93ca6cac2ef1ce1ce5d (patch) | |
tree | 0ac38c70827671862553d37dcac6b86f95ed2f8b /src/mongo/db/op_observer.cpp | |
parent | 7b126b0eb8fc8bdab7e5c12c28d0ed58a48505bb (diff) | |
download | mongo-f41c549e109e16a6400eb93ca6cac2ef1ce1ce5d.tar.gz |
SERVER-25740 Prevent creation of views if featureCompatibilityVersion is 3.2
Diffstat (limited to 'src/mongo/db/op_observer.cpp')
-rw-r--r-- | src/mongo/db/op_observer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/op_observer.cpp b/src/mongo/db/op_observer.cpp index 8defc1c71fe..f3e1a3729c8 100644 --- a/src/mongo/db/op_observer.cpp +++ b/src/mongo/db/op_observer.cpp @@ -91,6 +91,7 @@ void OpObserver::onInserts(OperationContext* txn, } if (nss.coll() == DurableViewCatalog::viewsCollectionName()) { DurableViewCatalog::onExternalChange(txn, nss); + DurableViewCatalog::confirm34FeatureCompatibilityVersion(); } } @@ -117,6 +118,7 @@ void OpObserver::onUpdate(OperationContext* txn, const OplogUpdateEntryArgs& arg NamespaceString nss(args.ns); if (nss.coll() == DurableViewCatalog::viewsCollectionName()) { DurableViewCatalog::onExternalChange(txn, nss); + DurableViewCatalog::confirm34FeatureCompatibilityVersion(); } if (args.ns == FeatureCompatibilityVersion::kCollection) { |