deardeng commented on code in PR #54197:
URL: https://github.com/apache/doris/pull/54197#discussion_r2247753505
##########
fe/fe-core/src/main/java/org/apache/doris/transaction/DatabaseTransactionMgr.java:
##########
@@ -193,12 +193,8 @@ public long getDbId() {
}
protected TransactionState getTransactionState(Long transactionId) {
- readLock();
- try {
- return unprotectedGetTransactionState(transactionId);
- } finally {
- readUnlock();
- }
+ return unprotectedGetTransactionState(transactionId);
+
}
private TransactionState unprotectedGetTransactionState(Long
transactionId) {
Review Comment:
unprotectedGetTransactionState 这个函数调用的地方很多啊,都有加速写锁,看看需不需要去掉啊
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]