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 - multistream resolve, stop searching streams after first match #1943

Closed

Conversation

matkatz
Copy link
Contributor

@matkatz matkatz commented Jun 24, 2018

Tracked on: DSO-9472,
Following-up on #1543

@dorodnic
Copy link
Contributor

Can you please explain what it is fixing and how?

for (auto itr: profiles)
{
auto stream = index_type{ itr->get_stream_type() ,itr->get_stream_index() };
if (match_stream(stream, kvp.first))
{
return to_request(itr.get());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

once the first index is found the function returns and the external loop prevents from locating multiple indexes for the same sensor

@matkatz matkatz closed this Jul 8, 2018
@matkatz matkatz deleted the resolve_multi_index_config branch December 23, 2018 07:57
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.

2 participants