[bug](config) Fix modifying label_num_threshold does not take effect (#34575)
This commit is contained in:
@ -170,8 +170,6 @@ public class DatabaseTransactionMgr {
|
||||
|
||||
private long lockReportingThresholdMs = Config.lock_reporting_threshold_ms;
|
||||
|
||||
private long maxFinalTxnsNum = Long.MAX_VALUE;
|
||||
|
||||
private void readLock() {
|
||||
this.transactionLock.readLock().lock();
|
||||
}
|
||||
@ -195,9 +193,6 @@ public class DatabaseTransactionMgr {
|
||||
this.env = env;
|
||||
this.idGenerator = idGenerator;
|
||||
this.editLog = env.getEditLog();
|
||||
if (Config.label_num_threshold >= 0) {
|
||||
this.maxFinalTxnsNum = Config.label_num_threshold;
|
||||
}
|
||||
}
|
||||
|
||||
public long getDbId() {
|
||||
@ -1728,7 +1723,7 @@ public class DatabaseTransactionMgr {
|
||||
break;
|
||||
}
|
||||
}
|
||||
while (finalStatusTransactionStateDeque.size() > maxFinalTxnsNum
|
||||
while ((Config.label_num_threshold > 0 && finalStatusTransactionStateDeque.size() > Config.label_num_threshold)
|
||||
&& numOfClearedTransaction < left) {
|
||||
TransactionState transactionState = finalStatusTransactionStateDeque.getFirst();
|
||||
if (transactionState.getFinishTime() != -1) {
|
||||
|
||||
Reference in New Issue
Block a user