diff --git a/src/entry/Maat_rule.cpp b/src/entry/Maat_rule.cpp index ba07693..5cb979c 100644 --- a/src/entry/Maat_rule.cpp +++ b/src/entry/Maat_rule.cpp @@ -3228,10 +3228,18 @@ void *thread_rule_monitor(void *arg) feather->scanner=feather->update_tmp_scanner; if(old_scanner!=NULL) { - //assert(feather->scanner->version>old_scanner->version); - MESA_handle_runtime_log(feather->logger,RLOG_LV_FATAL,maat_module, - "Maat version rool back %d -> %d.", - old_scanner->version, feather->scanner->version); + if(feather->scanner->version>old_scanner->version) + { + MESA_handle_runtime_log(feather->logger,RLOG_LV_INFO,maat_module, + "Maat version updated %d -> %d.", + old_scanner->version, feather->scanner->version); + } + else + { + MESA_handle_runtime_log(feather->logger,RLOG_LV_FATAL,maat_module, + "Maat version roll back %d -> %d.", + old_scanner->version, feather->scanner->version); + } assert(old_scanner->tomb_ref==feather->garbage_q); feather->zombie_rs_stream+=aligment_int64_array_sum(old_scanner->ref_cnt,old_scanner->max_thread_num); garbage_bagging(GARBAGE_SCANNER, old_scanner, feather->garbage_q); diff --git a/test/maat_test.cpp b/test/maat_test.cpp index f2eadfa..e819e2a 100644 --- a/test/maat_test.cpp +++ b/test/maat_test.cpp @@ -474,7 +474,7 @@ int test_offset_str_scan_with_chunk(Maat_feather_t feather,const char* table_nam struct Maat_rule_t result[4]; scan_status_t mid=NULL; //const char* fn="./testdata/mesa_logo.jpg"; - const char* fn="./testdata/100719.jpg"; + const char* fn="./testdata/mesa_logo.jpg"; FILE*fp=fopen(fn,"r"); if(fp==NULL) {