diff options
author | Sam Dunietz <sam.dunietz@10gen.com> | 2016-07-29 12:14:06 -0400 |
---|---|---|
committer | Sam Dunietz <sam.dunietz@10gen.com> | 2016-07-29 12:14:11 -0400 |
commit | 47a9c891ad77f6f26143ad35a7033fefabed4e82 (patch) | |
tree | 79b9f9437f06775e9df00c121e765a12a936817d /src/mongo/db/service_context_d_test_fixture.h | |
parent | f7662220e89874e8ed5ae65e4f77206e367c8037 (diff) | |
download | mongo-47a9c891ad77f6f26143ad35a7033fefabed4e82.tar.gz |
SERVER-24367 Implement CollectionRangeDeleter task lifetime management
Diffstat (limited to 'src/mongo/db/service_context_d_test_fixture.h')
-rw-r--r-- | src/mongo/db/service_context_d_test_fixture.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/service_context_d_test_fixture.h b/src/mongo/db/service_context_d_test_fixture.h index 2cfb6f1cb89..d6eff14c72d 100644 --- a/src/mongo/db/service_context_d_test_fixture.h +++ b/src/mongo/db/service_context_d_test_fixture.h @@ -32,6 +32,7 @@ namespace mongo { +class ServiceContext; class OperationContext; /** @@ -50,6 +51,12 @@ protected: void tearDown() override; /** + * Returns a service context, which is only valid for this instance of the test. + * Must not be called before setUp or after tearDown. + */ + ServiceContext* getServiceContext(); + + /** * Drops all databases. Call this before global ReplicationCoordinator is destroyed -- it is * used to drop the databases. */ |