Kikyou1997 commented on code in PR #8864: URL: https://github.com/apache/doris/pull/8864#discussion_r980019243
########## fe/fe-core/src/main/java/org/apache/doris/statistics/StatisticsJobManager.java: ########## @@ -80,16 +80,24 @@ public Map<Long, StatisticsJob> getIdToStatisticsJob() { } public void createStatisticsJob(AnalyzeStmt analyzeStmt) throws UserException { - // step1: init statistics job by analyzeStmt - StatisticsJob statisticsJob = StatisticsJob.fromAnalyzeStmt(analyzeStmt); - writeLock(); Review Comment: Seems like the read lock is never used, so why not use object lock directly -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org