Skip to content

Commit

Permalink
fixed build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
glookka committed Dec 10, 2023
1 parent fbc0326 commit 2303024
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/searchnode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,9 @@ class ExtAnd_c : public ExtTwofer_c
NodeEstimate_t Estimate ( int64_t iTotalDocs ) const override;
int GetDocsCount() const override { return m_bEmpty ? 0 : ExtTwofer_c::GetDocsCount(); }
void DebugDump ( int iLevel ) override;

private:
bool m_bEmpty = false;
};

// AND that returns hits from right node only
Expand Down Expand Up @@ -2835,6 +2838,7 @@ void ExtTwofer_c::SetRowidBoundaries ( const RowIdBoundaries_t & tBoundaries )
ExtAnd_c::ExtAnd_c ( ExtNode_i * pLeft, ExtNode_i * pRight )
: ExtTwofer_c ( pLeft, pRight )
{
m_bEmpty = ( !m_pLeft || !m_pLeft->GetDocsCount() ) || ( !m_pRight || !m_pRight->GetDocsCount() );
if ( m_pLeft && m_pLeft->GetDocsCount() && ( !m_pRight || !m_pRight->GetDocsCount() ) )
std::swap ( m_pLeft, m_pRight );
}
Expand Down

0 comments on commit 2303024

Please sign in to comment.