EX_data中的hash表使用RCU更新,替代读写锁,提高多线程下的访问性能。
This commit is contained in:
@@ -5,6 +5,8 @@ struct EX_data_rt;
|
||||
|
||||
struct EX_data_rt* EX_data_rt_new(int table_id, Maat_plugin_EX_key2index_func_t * key2index, void (* user_data_free)(void *user_data), struct Maat_garbage_bin* bin);
|
||||
void EX_data_rt_free(struct EX_data_rt* p);
|
||||
void EX_data_rt_update_commit(struct EX_data_rt* ex_rt);
|
||||
|
||||
void EX_data_rt_set_schema(struct EX_data_rt* p, const struct EX_data_schema* schema);
|
||||
void EX_data_rt_cache_row_put(struct EX_data_rt* p, const char* row);
|
||||
|
||||
|
||||
@@ -87,6 +87,7 @@ void Maat_table_runtime_digest_del(struct Maat_table_runtime* table_rt, int expr
|
||||
int Maat_table_runtime_digest_batch_udpate(struct Maat_table_runtime* table_rt);
|
||||
|
||||
void Maat_table_runtime_plugin_new_row(struct Maat_table_runtime* table_rt, struct Maat_table_schema* table_schema, const char* row, void *logger);
|
||||
void Maat_table_runtime_plugin_update_commit(struct Maat_table_runtime* table_rt);
|
||||
|
||||
void Maat_table_runtime_ip_plugin_new_row(struct Maat_table_runtime* table_rt, struct Maat_table_schema* table_schema, const char* row, void *logger);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user