Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix zonespanlist() function on distributed index #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MBoldyrev
Copy link

@MBoldyrev MBoldyrev commented Jan 29, 2018

When searching on a distributed index containing multiple local indices, and the conditions for reusing sorter are met, the sorter is created and stored at line searchd.cpp:8257:
pLocalSorter = sphCreateQueue ( tQueueSettings );
Then the local variable tQueueSettings leaves the 'if' block and disappears, together with its m_uPackedFactorFlags member, whose value was not stored anywhere. This leads to CSphQuery::m_bZSlist being false regardless zonespanlist() function presence in the query. As a result, garbage or crashes take place of the expected zone lists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant