table_name->table_id and compile table callback

This commit is contained in:
liuwentan
2023-02-21 11:27:18 +08:00
parent 24b27429a5
commit f8543d9f96
17 changed files with 391 additions and 298 deletions

View File

@@ -72,9 +72,9 @@ void read_rule_from_redis(redisContext *c, long long desire_version, const char
int update_type = MAAT_UPDATE_TYPE_INC;
long long version = 0;
const char *cur_table = NULL;
char foreign_files_dir[256] = {0};
char table_path[256] = {0};
char index_path[256] = {0};
char foreign_files_dir[NAME_MAX] = {0};
char table_path[PATH_MAX] = {0};
char index_path[PATH_MAX] = {0};
FILE *table_fp = NULL;
FILE *index_fp = NULL;
struct serial_rule *rule_list = NULL;