Skip to content

Commit

Permalink
Review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander.A,Utkin committed Dec 5, 2024
1 parent ab66015 commit a39b966
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pyreindexer/lib/include/queryresults_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ class QueryResultsWrapper {

void FetchResults() {
assert(qres_.has_value());
// when results are fetched iterator closes and frees memory of results buffer of Reindexer
++it_;
if (it_ == qres_->end()) {
it_ = qres_->begin();
}
}

const std::string& GetExplainResults() & noexcept {
Expand Down

0 comments on commit a39b966

Please sign in to comment.