Merge branch 'master' into hotfix/officialbugfix

This commit is contained in:
shi yuhang 2024-06-04 11:37:16 +08:00 committed by GitHub
commit bc40a34f28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -88,6 +88,11 @@ public class TwoPhaseCommitter implements AutoCloseable {
}
public TwoPhaseCommitter(TiSession session, long startTime, long lockTTL) {
this(session, startTime, lockTTL, createExecutorService(WRITE_BUFFER_SIZE));
}
public TwoPhaseCommitter(
TiSession session, long startTime, long lockTTL, ExecutorService executorService) {
this(
session,
startTime,
@ -98,7 +103,7 @@ public class TwoPhaseCommitter implements AutoCloseable {
1,
true,
3,
createExecutorService(WRITE_BUFFER_SIZE));
executorService);
}
TwoPhaseCommitter(