From 85daf06a79884ac013d1c1cad8f7a4ccc9de7d88 Mon Sep 17 00:00:00 2001 From: zhengchao Date: Thu, 13 May 2021 17:51:23 +0800 Subject: [PATCH] =?UTF-8?q?TSG-6345=20redis=E6=96=AD=E5=BC=80=E6=9C=9F?= =?UTF-8?q?=E9=97=B4redis=E5=86=85=E7=9A=84=E6=95=B0=E6=8D=AE=E5=8F=91?= =?UTF-8?q?=E7=94=9F=E5=8F=98=E5=8C=96=EF=BC=8C=E4=B8=94=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7=E6=9C=AA=E5=8F=91=E7=94=9F=E5=9B=9E=E6=BB=9A=EF=BC=8C?= =?UTF-8?q?=E5=AF=BC=E8=87=B4maat=E6=97=A0=E6=B3=95=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E6=96=B0=E9=85=8D=E7=BD=AE=E3=80=82=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=96=B9=E6=B3=95=EF=BC=9A=20=E9=87=8D=E8=BF=9Eredis=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E8=A7=A6=E5=8F=91=E5=85=A8=E9=87=8F=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entry/Maat_command.cpp | 4 ++++ src/entry/Maat_rule.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/entry/Maat_command.cpp b/src/entry/Maat_command.cpp index abba07e..df16fcd 100644 --- a/src/entry/Maat_command.cpp +++ b/src/entry/Maat_command.cpp @@ -1733,6 +1733,10 @@ void redis_monitor_traverse(long long version, struct source_redis_ctx* m { return; } + else + { + version=0;//Trigger full update when reconnect to redis. + } } rule_num=get_rm_key_list(mr_ctx->read_ctx, version, feather->load_version_from, &new_version, feather->table_mgr, &rule_list, &update_type, logger, feather->cumulative_update_off); diff --git a/src/entry/Maat_rule.cpp b/src/entry/Maat_rule.cpp index 4b9054d..8027645 100644 --- a/src/entry/Maat_rule.cpp +++ b/src/entry/Maat_rule.cpp @@ -57,7 +57,7 @@ extern "C" } #endif -int MAAT_FRAME_VERSION_3_1_20_20210513=1; +int MAAT_FRAME_VERSION_3_1_21_20210513=1; int is_valid_table_name(const char* str) {