Skip to content

Merging #7572#10547

Merged
tavplubix merged 23 commits intomasterfrom
zhang2014/feature/ISSUES-5436
Apr 28, 2020
Merged

Merging #7572#10547
tavplubix merged 23 commits intomasterfrom
zhang2014/feature/ISSUES-5436

Conversation

@tavplubix
Copy link
Copy Markdown
Member

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Other

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Merging #7572

@blinkov blinkov added the pr-other Pull request with changes not fitting to other categories label Apr 27, 2020
if (capturingNamedQueryParam(analyze_receive_params, regex))
return addFiltersFromConfig(new HandlingRuleHTTPHandlerFactory<PredefinedQueryHandler>(
server, std::move(analyze_receive_params), std::move(predefined_query), std::move(regex),
std::move(headers_name_with_regex)), configuration, config_prefix);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

CompiledRegexPtr is shared multiple handlers. it's thread safe?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Using compiled RE2 from multiple threads is safe. However, we also have re2_st with disabled internal mutex and there are some mutable fields in RE2, so I'm not sure about safety of const methods of re2_st::RE2 version. I will replace it with ordinary re2, thanks

@tavplubix tavplubix merged commit 11c3493 into master Apr 28, 2020
@tavplubix tavplubix deleted the zhang2014/feature/ISSUES-5436 branch April 28, 2020 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-other Pull request with changes not fitting to other categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants