修改scan status重的测试用例,覆盖更多分支。

This commit is contained in:
zhengchao
2021-07-15 17:03:09 +08:00
parent 15562f1c57
commit 99e8ffb510
3 changed files with 13 additions and 7 deletions

View File

@@ -95,7 +95,7 @@ struct Maat_hierarchy_clause
struct Maat_hierarchy
{
pthread_rwlock_t rwlock;
time_t version;
time_t version; //After full update, clause id may indicate a different clause. Comparing hier->version and mid->hier_ver can prevent false positive match.
struct bool_matcher* bm;
struct Maat_hierarchy_compile* hash_compile_by_id; //key: compile_id, value: struct Maat_hierarchy_compile*.