Currently if a reload operation fails, any subsystems listening for
notifications will get a RELOAD_NOTIFY_START callback but not a
RELOAD_NOTIFY_END callback.

This patch adds a RELOAD_NOTIFY_FAILED callback so that interested
parties will know when the reload has finished and that it failed.
-- 

Chrissie
Index: exec/objdb.c
===================================================================
--- exec/objdb.c	(revision 1677)
+++ exec/objdb.c	(working copy)
@@ -1523,6 +1523,7 @@
 		if (modules[i]->config_reloadconfig) {
 			res = modules[i]->config_reloadconfig(&objdb_iface, flush, error_string);
 			if (res) {
+				object_reload_notification(OBJDB_RELOAD_NOTIFY_FAILED, flush);
 				objdb_wrunlock();
 				return res;
 			}
Index: include/corosync/engine/objdb.h
===================================================================
--- include/corosync/engine/objdb.h	(revision 1677)
+++ include/corosync/engine/objdb.h	(working copy)
@@ -53,7 +53,8 @@
 
 typedef enum {
         OBJDB_RELOAD_NOTIFY_START,
-        OBJDB_RELOAD_NOTIFY_END
+        OBJDB_RELOAD_NOTIFY_END,
+	OBJDB_RELOAD_NOTIFY_FAILED
 } objdb_reload_notify_type_t;
 
 
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to