From a751eab6bb02d9352c2ea4a68c1ea0bf2ff25073 Mon Sep 17 00:00:00 2001 From: zhengchao Date: Wed, 30 May 2018 11:57:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DflushDB=E4=B8=AD=E6=9C=AA?= =?UTF-8?q?=E9=87=8D=E7=BD=AE=E9=A2=84=E5=A4=87=E7=89=88=E6=9C=AC=E5=8F=B7?= =?UTF-8?q?=E7=9A=84bug=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entry/Maat_command.cpp | 2 ++ src/entry/Maat_rule.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/entry/Maat_command.cpp b/src/entry/Maat_command.cpp index ec14be0..c4bd47c 100644 --- a/src/entry/Maat_command.cpp +++ b/src/entry/Maat_command.cpp @@ -1681,6 +1681,8 @@ int redis_flush_DB(redisContext* ctx, int db_index, void* logger) 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++; redisAppendCommand(ctx,"SET SEQUENCE_GROUP 1",maat_redis_version); diff --git a/src/entry/Maat_rule.cpp b/src/entry/Maat_rule.cpp index e1d1a41..09d1c05 100644 --- a/src/entry/Maat_rule.cpp +++ b/src/entry/Maat_rule.cpp @@ -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",""};