From f112c16d2ce6b66cb271944363933ff55ccc3a9b Mon Sep 17 00:00:00 2001 From: zhengchao Date: Mon, 22 Jun 2020 20:15:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9v3=E7=89=88=E6=9C=AC=E7=9A=84?= =?UTF-8?q?=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entry/Maat_command.cpp | 2 +- test/perf_test_maatframe.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/entry/Maat_command.cpp b/src/entry/Maat_command.cpp index 9d22cda..35873a5 100644 --- a/src/entry/Maat_command.cpp +++ b/src/entry/Maat_command.cpp @@ -724,7 +724,7 @@ FULL_UPDATE: *list=s_rule_array; *update_type=CM_UPDATE_TYPE_FULL; MESA_handle_runtime_log(logger, RLOG_LV_INFO, maat_redis_monitor, - "Full update %d keys of version %lldd.", rule_num, new_version); + "Full update %d keys of version %lld.", rule_num, new_version); return rule_num ; } diff --git a/test/perf_test_maatframe.cpp b/test/perf_test_maatframe.cpp index fd7e09b..57c9ead 100644 --- a/test/perf_test_maatframe.cpp +++ b/test/perf_test_maatframe.cpp @@ -145,7 +145,7 @@ protected: const char* foregin_dir="./foreign_files/"; Maat_set_feather_opt(_shared_feather, MAAT_OPT_FOREIGN_CONT_DIR, foregin_dir, strlen(foregin_dir)+1); - // Maat_cmd_flushDB(_shared_feather); + Maat_cmd_flushDB(_shared_feather); Maat_initiate_feather(_shared_feather); } static void TearDownTestCase() @@ -166,7 +166,7 @@ void* MaatCMDPerfTest::logger; TEST_F(MaatCMDPerfTest, SetExpr200K) { const int CMD_EXPR_NUM=2*1000*1000; - const int CMD_IP_NUM=2*1000*1000; + const int CMD_IP_NUM=13*1000*1000; const char* expr_table_name="HTTP_URL"; const char* ip_table_name="IP_CONFIG"; @@ -182,7 +182,7 @@ TEST_F(MaatCMDPerfTest, SetExpr200K) config_id=(int)Maat_cmd_incrby(feather, "TEST_SEQ", CMD_EXPR_NUM+CMD_IP_NUM); config_id-=CMD_EXPR_NUM+CMD_IP_NUM; int i=0; - /* + struct Maat_command_batch* batch=NULL; batch=Maat_command_batch_new(feather); srand(srand_keyword); @@ -200,7 +200,7 @@ TEST_F(MaatCMDPerfTest, SetExpr200K) } Maat_command_batch_commit(batch); wait_for_cmd_effective_copy(feather, version_before); -*/ + struct Maat_rule_t result; scan_status_t mid=NULL;