diff --git a/src/lnav_commands.cc b/src/lnav_commands.cc index 36233231..2b8351a6 100644 --- a/src/lnav_commands.cc +++ b/src/lnav_commands.cc @@ -3365,6 +3365,7 @@ com_open(exec_context& ec, std::string cmdline, std::vector& args) } break; } + case file_format_t::MULTIPLEXED: case file_format_t::UNKNOWN: { auto open_res = lnav::filesystem::open_file(fn, O_RDONLY); diff --git a/src/logfile_sub_source.cc b/src/logfile_sub_source.cc index b722fcc9..161c84da 100644 --- a/src/logfile_sub_source.cc +++ b/src/logfile_sub_source.cc @@ -746,8 +746,7 @@ struct logline_cmp { }; logfile_sub_source::rebuild_result -logfile_sub_source::rebuild_index( - std::optional deadline) +logfile_sub_source::rebuild_index(std::optional deadline) { if (this->tss_view == nullptr) { return rebuild_result::rr_no_change; @@ -1822,7 +1821,6 @@ logfile_sub_source::eval_sql_filter(sqlite3_stmt* stmt, continue; } if (strcmp(name, ":log_opid") == 0) { - auto opid_attr_opt = get_string_attr(sa, logline::L_OPID); if (values.lvv_opid_value) { sqlite3_bind_text(stmt, lpc + 1, @@ -2773,8 +2771,7 @@ logfile_sub_source::get_bookmark_metadata_context( } } if (vl_iter == bv.begin()) { - return bookmark_metadata_context{ - std::nullopt, std::nullopt, next_line}; + return bookmark_metadata_context{std::nullopt, std::nullopt, next_line}; } --vl_iter; @@ -2793,8 +2790,7 @@ logfile_sub_source::get_bookmark_metadata_context( } --vl_iter; } - return bookmark_metadata_context{ - std::nullopt, std::nullopt, next_line}; + return bookmark_metadata_context{std::nullopt, std::nullopt, next_line}; } std::optional