summaryrefslogtreecommitdiff
path: root/src/mongo/db/transaction_participant_test.cpp
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@10gen.com>2019-06-06 17:19:12 -0400
committerMatthew Russotto <matthew.russotto@10gen.com>2019-06-06 19:41:19 -0400
commit9b002077ae7c46b6edcac0ad9eb72e63312cfde3 (patch)
tree4b386f5f4aad1cbb00d8ffc4eb64667920a413bb /src/mongo/db/transaction_participant_test.cpp
parent7d83325274519b00a81ad919018aaa36200058bb (diff)
downloadmongo-9b002077ae7c46b6edcac0ad9eb72e63312cfde3.tar.gz
SERVER-39807 Remove the server parameter gating large transactions
Diffstat (limited to 'src/mongo/db/transaction_participant_test.cpp')
-rw-r--r--src/mongo/db/transaction_participant_test.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mongo/db/transaction_participant_test.cpp b/src/mongo/db/transaction_participant_test.cpp
index 3af6f687615..82f68661e2d 100644
--- a/src/mongo/db/transaction_participant_test.cpp
+++ b/src/mongo/db/transaction_participant_test.cpp
@@ -34,7 +34,6 @@
#include "mongo/db/client.h"
#include "mongo/db/db_raii.h"
#include "mongo/db/dbdirectclient.h"
-#include "mongo/db/op_observer_impl.h"
#include "mongo/db/op_observer_noop.h"
#include "mongo/db/op_observer_registry.h"
#include "mongo/db/operation_context.h"
@@ -127,7 +126,6 @@ public:
boost::optional<OplogSlot> abortOplogEntryOpTime) override;
bool onTransactionAbortThrowsException = false;
bool transactionAborted = false;
- stdx::function<void()> onTransactionAbortFn = []() {};
repl::OpTime onDropCollection(OperationContext* opCtx,
const NamespaceString& collectionName,
@@ -190,7 +188,6 @@ void OpObserverMock::onTransactionAbort(OperationContext* opCtx,
"onTransactionAbort() failed",
!onTransactionAbortThrowsException);
transactionAborted = true;
- onTransactionAbortFn();
}
repl::OpTime OpObserverMock::onDropCollection(OperationContext* opCtx,
@@ -3803,6 +3800,5 @@ TEST_F(TxnParticipantTest, ExitPreparePromiseIsFulfilledOnAbortPreparedTransacti
// ready.
ASSERT_TRUE(txnParticipant.onExitPrepare().isReady());
}
-
} // namespace
} // namespace mongo