mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
Prevent recursion of &on_change handlers.
This change prevents &on_change handlers for a table from running if an &on_change handler for the same table is already running.
This commit is contained in:
parent
7166cb7373
commit
7f9f66fce9
5 changed files with 46 additions and 3 deletions
|
@ -14,7 +14,7 @@ const char* attr_name(attr_tag t)
|
|||
"&read_expire", "&write_expire", "&create_expire",
|
||||
"&raw_output", "&priority",
|
||||
"&group", "&log", "&error_handler", "&type_column",
|
||||
"(&tracked)", "&deprecated",
|
||||
"(&tracked)", "&on_change", "&deprecated",
|
||||
};
|
||||
|
||||
return attr_names[int(t)];
|
||||
|
@ -405,7 +405,7 @@ void Attributes::CheckAttr(Attr* a)
|
|||
{
|
||||
if ( type->Tag() != TYPE_TABLE )
|
||||
{
|
||||
Error("expiration only applicable to tables");
|
||||
Error("expiration only applicable to sets/tables");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue