diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2017-10-17 15:59:28 -0400 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2017-10-19 16:29:11 -0400 |
commit | 88c39edf9275e47e5db4b1dbffb0bf51f9187731 (patch) | |
tree | c4cb3f2f181d0aa820d2b663a246543e92f4338f /src/mongo/db/operation_context_test.cpp | |
parent | 6459867cc36f379d01f2f99642f6edcabdd3c1ce (diff) | |
download | mongo-88c39edf9275e47e5db4b1dbffb0bf51f9187731.tar.gz |
SERVER-31521 Make OperationContextGroup have a non-sticky interrupt and update ShardServerCatalogCacheLoader accordingly
Diffstat (limited to 'src/mongo/db/operation_context_test.cpp')
-rw-r--r-- | src/mongo/db/operation_context_test.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/mongo/db/operation_context_test.cpp b/src/mongo/db/operation_context_test.cpp index b5c8fe2c91d..ac14497fa25 100644 --- a/src/mongo/db/operation_context_test.cpp +++ b/src/mongo/db/operation_context_test.cpp @@ -136,22 +136,9 @@ TEST(OperationContextTest, OpCtxGroup) { group1.interrupt(ErrorCodes::InternalError); ASSERT_FALSE(opCtx3->checkForInterruptNoAssert().isOK()); ASSERT_FALSE((*opCtx4).checkForInterruptNoAssert().isOK()); - - auto serviceCtx3 = stdx::make_unique<ServiceContextNoop>(); - auto client3 = serviceCtx3->makeClient("OperationContextTest3"); - auto opCtx5 = group1.makeOperationContext(*client3); - ASSERT_FALSE(opCtx5->checkForInterruptNoAssert().isOK()); // interrupt is sticky } ASSERT_TRUE(group1.isEmpty()); - { - group1.resetInterrupt(); - auto serviceCtx1 = stdx::make_unique<ServiceContextNoop>(); - auto client1 = serviceCtx1->makeClient("OperationContextTest3"); - auto opCtx1 = group1.makeOperationContext(*client1); - ASSERT_TRUE(opCtx1->checkForInterruptNoAssert().isOK()); // interrupt unstuck - } - OperationContextGroup group2; { auto serviceCtx = stdx::make_unique<ServiceContextNoop>(); |