Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/main/java/org/tikv/txn/TwoPhaseCommitter.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ public TwoPhaseCommitter(TiSession session, long startTime) {
}

public TwoPhaseCommitter(TiSession session, long startTime, long lockTTL) {
this(session, startTime, lockTTL, createExecutorService(WRITE_BUFFER_SIZE));
}

public TwoPhaseCommitter(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change previous constructor method to this(session,startTime,lockTTL,createExecutorService(WRITE_BUFFER_SIZE));
image

TiSession session, long startTime, long lockTTL, ExecutorService executorService) {
this(
session,
startTime,
Expand All @@ -98,7 +103,7 @@ public TwoPhaseCommitter(TiSession session, long startTime, long lockTTL) {
1,
true,
3,
createExecutorService(WRITE_BUFFER_SIZE));
executorService);
}

TwoPhaseCommitter(
Expand Down