1、提供Maat_cmd_flushDB函数用于重置redis数据库,重置操作后版本号加1。

2、当ZRANGEBYSCORE结果为空的时(日志Got nothing after ),会全量加载。
3、exec_serial_rule事务失败时,重试5次。
This commit is contained in:
zhengchao
2018-03-15 11:50:32 +08:00
parent 8b04b408f4
commit 6b2f08fd04
4 changed files with 72 additions and 5 deletions

View File

@@ -151,5 +151,6 @@ int Maat_cmd_set_lines(Maat_feather_t feather,const struct Maat_line_t** line_ru
//If the key does not exist, it is set to 0 before performing the operation.
long long Maat_cmd_incrby(Maat_feather_t feather,const char* key, int increment);
int Maat_cmd_select(Maat_feather_t feather, int label_id, int * output_ids, unsigned int size);
int Maat_cmd_flushDB(Maat_feather_t feather);
#endif