caiconghui commented on a change in pull request #6200:
URL: https://github.com/apache/incubator-doris/pull/6200#discussion_r670425732



##########
File path: 
fe/fe-core/src/main/java/org/apache/doris/catalog/TabletInvertedIndex.java
##########
@@ -484,40 +512,40 @@ public void setNewSchemaHash(long partitionId, long 
indexId, int newSchemaHash)
         if (Catalog.isCheckpointThread()) {
             return;
         }
-        writeLock();
+        readLock();

Review comment:
       actually here not modify any structure for TabletInvertedIndex, and when 
we modify schemahash we hold the tablet meta write lock of tablet meta




-- 
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]

Reply via email to