更新测试用例。
This commit is contained in:
@@ -3228,10 +3228,18 @@ void *thread_rule_monitor(void *arg)
|
|||||||
feather->scanner=feather->update_tmp_scanner;
|
feather->scanner=feather->update_tmp_scanner;
|
||||||
if(old_scanner!=NULL)
|
if(old_scanner!=NULL)
|
||||||
{
|
{
|
||||||
//assert(feather->scanner->version>old_scanner->version);
|
if(feather->scanner->version>old_scanner->version)
|
||||||
MESA_handle_runtime_log(feather->logger,RLOG_LV_FATAL,maat_module,
|
{
|
||||||
"Maat version rool back %d -> %d.",
|
MESA_handle_runtime_log(feather->logger,RLOG_LV_INFO,maat_module,
|
||||||
old_scanner->version, feather->scanner->version);
|
"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);
|
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);
|
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);
|
garbage_bagging(GARBAGE_SCANNER, old_scanner, feather->garbage_q);
|
||||||
|
|||||||
@@ -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];
|
struct Maat_rule_t result[4];
|
||||||
scan_status_t mid=NULL;
|
scan_status_t mid=NULL;
|
||||||
//const char* fn="./testdata/mesa_logo.jpg";
|
//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");
|
FILE*fp=fopen(fn,"r");
|
||||||
if(fp==NULL)
|
if(fp==NULL)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user