This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 1acb37e782e [Fix](inverted index) reorder ConjunctionQuery deconstruct
order #25972 (#26211)
1acb37e782e is described below
commit 1acb37e782ee821820b09eb779cde0ff8f591532
Author: airborne12 <[email protected]>
AuthorDate: Wed Nov 1 19:38:45 2023 +0800
[Fix](inverted index) reorder ConjunctionQuery deconstruct order #25972
(#26211)
---
.../segment_v2/inverted_index/query/conjunction_query.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git
a/be/src/olap/rowset/segment_v2/inverted_index/query/conjunction_query.cpp
b/be/src/olap/rowset/segment_v2/inverted_index/query/conjunction_query.cpp
index c5793f93f06..b77edc79ade 100644
--- a/be/src/olap/rowset/segment_v2/inverted_index/query/conjunction_query.cpp
+++ b/be/src/olap/rowset/segment_v2/inverted_index/query/conjunction_query.cpp
@@ -25,16 +25,16 @@ ConjunctionQuery::ConjunctionQuery(IndexReader* reader)
: _reader(reader), _index_version(reader->getIndexVersion()) {}
ConjunctionQuery::~ConjunctionQuery() {
- for (auto& term : _terms) {
- if (term) {
- _CLDELETE(term);
- }
- }
for (auto& term_doc : _term_docs) {
if (term_doc) {
_CLDELETE(term_doc);
}
}
+ for (auto& term : _terms) {
+ if (term) {
+ _CLDELETE(term);
+ }
+ }
}
void ConjunctionQuery::add(const std::wstring& field_name, const
std::vector<std::string>& terms) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]