修复flushDB中未重置预备版本号的bug。

This commit is contained in:
zhengchao
2018-05-30 11:57:11 +08:00
parent e709300b24
commit a751eab6bb
2 changed files with 3 additions and 1 deletions

View File

@@ -1681,6 +1681,8 @@ int redis_flush_DB(redisContext* ctx, int db_index, void* logger)
redisAppendCommand(ctx,"FLUSHDB");
append_cmd_cnt++;
redisAppendCommand(ctx,"SET MAAT_VERSION %lld",maat_redis_version);
append_cmd_cnt++;
redisAppendCommand(ctx,"SET MAAT_PRE_VER %lld",maat_redis_version);
append_cmd_cnt++;
redisAppendCommand(ctx,"SET SEQUENCE_REGION 1",maat_redis_version);
append_cmd_cnt++;

View File

@@ -30,7 +30,7 @@
#include "stream_fuzzy_hash.h"
#include "gram_index_engine.h"
int MAAT_FRAME_VERSION_2_2_20180524=1;
int MAAT_FRAME_VERSION_2_2_20180529=1;
const char* CHARSET_STRING[]={"NONE","gbk","big5","unicode","utf8","bin",
"unicode_ascii_esc","unicode_ascii_aligned","unicode_ncr_dec","unicode_ncr_hex","url_encode_gb2312","url_encode_utf8",""};