diff options
| author | zhangchengwei <[email protected]> | 2019-01-14 23:06:18 +0800 |
|---|---|---|
| committer | zhangchengwei <[email protected]> | 2019-01-14 23:06:18 +0800 |
| commit | 17b950a750efacda4dbfb4a92a9dfeefd7b9cca6 (patch) | |
| tree | 775e84e4b68838d8c8691cfec4361cdb68b05c58 /src/pg_valve_main.h | |
| parent | 8da65b5d6ff6eaf84b3ef61c98ec828e8dfb8580 (diff) | |
将Redis状态视为阀门状态,加入状态监控(主从备份);feature-reference-count
Diffstat (limited to 'src/pg_valve_main.h')
| -rw-r--r-- | src/pg_valve_main.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pg_valve_main.h b/src/pg_valve_main.h index c5063e7..0c5d215 100644 --- a/src/pg_valve_main.h +++ b/src/pg_valve_main.h @@ -12,6 +12,8 @@ #include "pg_valve_stat.h" #include "pg_valve_deal.h" +#include <hiredis-vip/hiredis.h> + #define PANGU_CONF_FILE "./conf/pangu_valve.conf" #define PANGU_LOCK_FILE "/tmp/pangu_valve_lock" @@ -53,6 +55,7 @@ struct maat_table_relation{ int redis_index; char **tables_name; int table_num; + redisContext *ctx; }; struct service_id_map |
