Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a crash bug when there is a syntax error query in many queries
A new grn_ctx is used for fulltext search because an allocated object for fulltext search is destroyed after query is handled. It means that handling a query and destroying an allocated object for fulltext search may be occured in the same time on different threads. But grn_ctx isn't thread safe. It may causes crash. Reported by susumu takaoka. Thanks!!!
- Loading branch information
Showing
2 changed files
with
67 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters