diff options
author | Benety Goh <benety@mongodb.com> | 2016-12-06 15:13:17 -0500 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2016-12-07 10:11:50 -0500 |
commit | b666c293b8dee59b0bb8926afafc6eebf9c7d21c (patch) | |
tree | 3bdc6f54dea3aec82cbdad525e8edc2ec1541936 /src/mongo/dbtests/framework.cpp | |
parent | 27b1e9a1d61fdd522df5376495859cf9f63725a9 (diff) | |
download | mongo-b666c293b8dee59b0bb8926afafc6eebf9c7d21c.tar.gz |
SERVER-27301 converted OpObserver into an interface. ServiceContext should always return a valid OpObserver implementation.
Diffstat (limited to 'src/mongo/dbtests/framework.cpp')
-rw-r--r-- | src/mongo/dbtests/framework.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/dbtests/framework.cpp b/src/mongo/dbtests/framework.cpp index 53826e931a0..68537ee5705 100644 --- a/src/mongo/dbtests/framework.cpp +++ b/src/mongo/dbtests/framework.cpp @@ -39,6 +39,7 @@ #include "mongo/db/client.h" #include "mongo/db/concurrency/lock_state.h" #include "mongo/db/dbdirectclient.h" +#include "mongo/db/op_observer_noop.h" #include "mongo/db/s/sharding_state.h" #include "mongo/db/service_context.h" #include "mongo/db/service_context_d.h" @@ -89,6 +90,7 @@ int runDbTests(int argc, char** argv) { checked_cast<ServiceContextMongoD*>(globalServiceContext)->createLockFile(); globalServiceContext->initializeGlobalStorageEngine(); + globalServiceContext->setOpObserver(stdx::make_unique<OpObserverNoop>()); int ret = unittest::Suite::run(frameworkGlobalParams.suites, frameworkGlobalParams.filter, |