summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhengchao <[email protected]>2018-06-28 17:30:15 +0800
committerzhengchao <[email protected]>2018-06-28 17:30:15 +0800
commit6b1281605de51ba85be13b4a40eea5216d002293 (patch)
tree880656ab2aa8401416dc571afb179186ad2b88d7
parenta751eab6bb02d9352c2ea4a68c1ea0bf2ff25073 (diff)
修复_exec_serial_rule_begin中maat_redis_version多加1的bug。该bug在load_specific_version分支发现并修复。v2.2.0v2.2
-rw-r--r--src/entry/Maat_command.cpp1
-rw-r--r--src/entry/Maat_rule.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/entry/Maat_command.cpp b/src/entry/Maat_command.cpp
index c4bd47c..49d563e 100644
--- a/src/entry/Maat_command.cpp
+++ b/src/entry/Maat_command.cpp
@@ -806,7 +806,6 @@ long long _exec_serial_rule_begin(redisContext* ctx)
redisReply* data_reply=NULL;
data_reply=_wrap_redisCommand(ctx, "INCRBY MAAT_PRE_VER 1");
maat_redis_version=read_redis_integer(data_reply);
- maat_redis_version++;
freeReplyObject(data_reply);
data_reply=_wrap_redisCommand(ctx,"MULTI");
return maat_redis_version;
diff --git a/src/entry/Maat_rule.cpp b/src/entry/Maat_rule.cpp
index 09d1c05..d3f7229 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_20180529=1;
+int MAAT_FRAME_VERSION_2_2_20180628=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",""};