Add function create_event_record()

For logging an event to the event table without generating an external
event notification.

Rename existing create_event_record*() functions to create_event_notification*()
as this describes their function better.
This commit is contained in:
Ian Barwick
2017-07-05 09:52:22 +09:00
parent d3ec15cd25
commit 617dee6bd6
6 changed files with 62 additions and 42 deletions

View File

@@ -206,7 +206,7 @@ do_primary_register(void)
}
/* Log the event */
create_event_record(conn,
create_event_notification(conn,
&config_file_options,
config_file_options.node_id,
"primary_register",
@@ -494,7 +494,7 @@ do_primary_unregister(void)
config_file_options.node_id);
}
create_event_record(primary_conn,
create_event_notification(primary_conn,
&config_file_options,
config_file_options.node_id,
"primary_unregister",