summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/dbtests.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2016-12-19 13:01:17 -0500
committerDavid Storch <david.storch@10gen.com>2016-12-19 17:43:22 -0500
commit0ab83eb64b48a002b75e32902d9813f7f658e7f9 (patch)
treec514330e6dd4d004aa0dd76bbacfa4bcd21d3f77 /src/mongo/dbtests/dbtests.cpp
parente1b312570b5a79ad75d722e562038c97ab800d29 (diff)
downloadmongo-0ab83eb64b48a002b75e32902d9813f7f658e7f9.tar.gz
SERVER-27459 set featureCompatibilityVersion to 3.4 in dbtest initialization
Diffstat (limited to 'src/mongo/dbtests/dbtests.cpp')
-rw-r--r--src/mongo/dbtests/dbtests.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/dbtests/dbtests.cpp b/src/mongo/dbtests/dbtests.cpp
index 8bcd72ff37d..5dc777696a3 100644
--- a/src/mongo/dbtests/dbtests.cpp
+++ b/src/mongo/dbtests/dbtests.cpp
@@ -33,6 +33,7 @@
#include "mongo/dbtests/dbtests.h"
+#include "mongo/base/init.h"
#include "mongo/base/initializer.h"
#include "mongo/client/dbclientinterface.h"
#include "mongo/db/auth/authorization_manager.h"
@@ -43,6 +44,7 @@
#include "mongo/db/index/index_descriptor.h"
#include "mongo/db/repl/replication_coordinator_global.h"
#include "mongo/db/repl/replication_coordinator_mock.h"
+#include "mongo/db/server_options.h"
#include "mongo/db/service_context.h"
#include "mongo/db/service_context_d.h"
#include "mongo/db/wire_version.h"
@@ -59,6 +61,12 @@ namespace mongo {
namespace dbtests {
namespace {
const auto kIndexVersion = IndexDescriptor::IndexVersion::kV2;
+
+MONGO_INITIALIZER(FeatureCompatibilityVersionForTest)(InitializerContext* context) {
+ serverGlobalParams.featureCompatibility.version.store(
+ ServerGlobalParams::FeatureCompatibility::Version::k34);
+ return Status::OK();
+}
} // namespace
void initWireSpec() {