zhannngchen commented on code in PR #11598:
URL: https://github.com/apache/doris/pull/11598#discussion_r940878654


##########
be/src/olap/reader.cpp:
##########
@@ -613,15 +613,14 @@ Status TabletReader::_init_delete_condition(const 
ReaderParams& read_params) {
     }
 
     auto delete_init = [&]() -> Status {
-        return _delete_handler.init(_tablet_schema, 
_tablet->delete_predicates(),
+        return _delete_handler.init(_tablet_schema, 
read_params.delete_predicates,
                                     read_params.version.second, this);
     };
 
     if (read_params.reader_type == READER_ALTER_TABLE) {
         return delete_init();
     }
 
-    std::shared_lock rdlock(_tablet->get_header_lock());

Review Comment:
   `delete_init()` access `tablet->delete_predicates()` in previous code, the 
access should be protected by a read lock, and now we don't need to access 
`tablet->delete_predicates()` here any more, so the lock should be removed.



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

Reply via email to