gavinchou commented on code in PR #41608:
URL: https://github.com/apache/doris/pull/41608#discussion_r1793863923
##########
be/src/olap/rowset/segment_v2/segment.cpp:
##########
@@ -910,8 +916,14 @@ Status Segment::new_inverted_index_iterator(const
TabletColumn& tablet_column,
ColumnReader* reader = _get_column_reader(tablet_column);
if (reader != nullptr && index_meta) {
if (_inverted_index_file_reader == nullptr) {
- RETURN_IF_ERROR(
- _inverted_index_file_reader_open.call([&] { return
_open_inverted_index(); }));
+ auto status = [this]() {
+ return _inverted_index_file_reader_open.call(
+ [&] { return _open_inverted_index(); });
+ }();
Review Comment:
why not just
```suggestion
auto status = _inverted_index_file_reader_open.call([&] { return
_open_inverted_index(); });
```
--
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]