Skip to content

Commit

Permalink
add TwoPhaseCommitter new Constructor contains executorService(#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
b.tian committed Jan 18, 2024
1 parent 533dbc2 commit 5d22be4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/main/java/org/tikv/txn/TwoPhaseCommitter.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,21 @@ public TwoPhaseCommitter(TiSession session, long startTime, long lockTTL) {
createExecutorService(WRITE_BUFFER_SIZE));
}

public TwoPhaseCommitter(
TiSession session, long startTime, long lockTTL, ExecutorService executorService) {
this(
session,
startTime,
lockTTL,
TXN_COMMIT_BATCH_SIZE,
TXN_COMMIT_BATCH_SIZE,
WRITE_BUFFER_SIZE,
1,
true,
3,
executorService);
}

TwoPhaseCommitter(
TiSession session,
long startTime,
Expand Down

0 comments on commit 5d22be4

Please sign in to comment.