diff options
| author | lishu <[email protected]> | 2019-08-13 14:48:27 +0800 |
|---|---|---|
| committer | lishu <[email protected]> | 2019-08-13 14:48:27 +0800 |
| commit | 394a798f5e816281e8d2b18a1cac49e678e96f89 (patch) | |
| tree | e3a684d6ba49ac46b6886d6819295e91ab9dfd90 /src | |
| parent | e059cdc8e3472f245a741a26717215011b90ac24 (diff) | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -138,7 +138,8 @@ int read_conf_and_init(const char* filename) char table_info_filename [MAX_PATH_LEN]={0}; unsigned int maat_redis_switch = 1; char maat_redis_ip[MAX_PATH_LEN] = {0}; - unsigned short maat_redis_port = 6379; + unsigned short maat_redis_port = 6379; + unsigned short maat_redis_index = 0; char full_index[MAX_PATH_LEN]={0}; char inc_index[MAX_PATH_LEN]={0}; uint32_t hash_thread_safe = 512; @@ -214,9 +215,11 @@ int read_conf_and_init(const char* filename) if(maat_redis_switch) { MESA_load_profile_string_def(filename,"MAAT","MaatRedisIP",maat_redis_ip,sizeof(maat_redis_ip),""); - MESA_load_profile_short_def(filename, "MAAT", "MaatRedisPort", (short*)&maat_redis_port,6379); + MESA_load_profile_short_def(filename, "MAAT", "MaatRedisPort", (short*)&maat_redis_port,6379); + MESA_load_profile_short_def(filename, "MAAT", "MaatRedisIndex", (short*)&maat_redis_index,0); Maat_set_feather_opt(g_dd_run.feather, MAAT_OPT_REDIS_IP, maat_redis_ip, strlen(maat_redis_ip)+1); Maat_set_feather_opt(g_dd_run.feather, MAAT_OPT_REDIS_PORT, &maat_redis_port, sizeof(maat_redis_port)); + Maat_set_feather_opt(g_dd_run.feather, MAAT_OPT_REDIS_INDEX, &maat_redis_index, sizeof(maat_redis_index)); } else { |
