Skip to content

Commit

Permalink
Fix race condition when reloading 'Query Rules Fast Routing'
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierJF committed Jul 20, 2023
1 parent c640f1b commit 4b5fe58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/query_processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ class Query_Processor {
*/
SQLite3_result* load_fast_routing(const fast_routing_hashmap_t& fast_routing_hashmap);
int search_rules_fast_routing_dest_hg(
khash_t(khStrInt)* _rules_fast_routing, const char* u, const char* s, int flagIN, bool lock
khash_t(khStrInt)*& _rules_fast_routing, const char* u, const char* s, int flagIN, bool lock
);
SQLite3_result * get_current_query_rules_fast_routing();
SQLite3_result * get_current_query_rules_fast_routing_inner();
Expand Down
2 changes: 1 addition & 1 deletion lib/Query_Processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ SQLite3_result * Query_Processor::get_current_query_rules_fast_routing() {
}

int Query_Processor::search_rules_fast_routing_dest_hg(
khash_t(khStrInt)* _rules_fast_routing, const char* u, const char* s, int flagIN, bool lock
khash_t(khStrInt)*& _rules_fast_routing, const char* u, const char* s, int flagIN, bool lock
) {
int dest_hg = -1;
const size_t u_len = strlen(u);
Expand Down

0 comments on commit 4b5fe58

Please sign in to comment.