校验子句的序号值,避免越界重启

This commit is contained in:
liuxueli
2021-03-15 11:25:59 +08:00
parent dc6d324b52
commit 673eeb9413

View File

@@ -34,6 +34,7 @@
#include "stream_fuzzy_hash.h"
#include "gram_index_engine.h"
#include "bool_matcher.h"
#define GIT_VERSION_CATTER(v) __attribute__((__used__)) const char * GIT_VERSION_##v = NULL
#define GIT_VERSION_EXPEND(v) GIT_VERSION_CATTER(v)
@@ -1486,6 +1487,14 @@ void update_group2compile_rule(struct Maat_table_schema* table, const char* tabl
table->udpate_err_cnt++;
return;
}
if(db_g2c_rule.clause_index>=MAX_ITEMS_PER_BOOL_EXPR)
{
MESA_handle_runtime_log(logger,RLOG_LV_INFO,maat_module ,
"update error, invalid clause index of group2compile table %s:%s",
table->table_name[table->updating_name], table_line);
table->udpate_err_cnt++;
return;
}
if(is_valid_table_name(virtual_table_name))
{
db_g2c_rule.virtual_table_id=Maat_table_get_id_by_name(table_mgr, virtual_table_name);