adds SYNC_V1 for previous service engines, and SYNC_V2 for new service
engines to openais service engines.
Index: services/evt.c
===================================================================
--- services/evt.c	(revision 1996)
+++ services/evt.c	(working copy)
@@ -218,6 +218,7 @@
 	.exec_engine_count			= sizeof(evt_exec_engine) / sizeof(struct corosync_exec_handler),
 	.exec_dump_fn				= NULL,
 	.confchg_fn					= evt_conf_change,
+	.sync_mode					= CS_SYNC_V1,
 	.sync_init					= evt_sync_init,
 	.sync_process				= evt_sync_process,
 	.sync_activate				= evt_sync_activate,
Index: services/ckpt.c
===================================================================
--- services/ckpt.c	(revision 1996)
+++ services/ckpt.c	(working copy)
@@ -575,6 +575,7 @@
 	.exec_engine			= ckpt_exec_engine,
 	.exec_engine_count		= sizeof (ckpt_exec_engine) / sizeof (struct corosync_exec_handler),
 	.confchg_fn			= ckpt_confchg_fn,
+	.sync_mode			= CS_SYNC_V1,
 	.sync_init			= ckpt_sync_init,
 	.sync_process			= ckpt_sync_process,
 	.sync_activate			= ckpt_sync_activate,
Index: services/tmr.c
===================================================================
--- services/tmr.c	(revision 1996)
+++ services/tmr.c	(working copy)
@@ -177,6 +177,7 @@
 	.exec_engine		= NULL,
 	.exec_engine_count	= 0,
 	.confchg_fn		= NULL,
+	.sync_mode		= CS_SYNC_V2,
 	.sync_init		= NULL,
 	.sync_process		= NULL,
 	.sync_activate		= NULL,
Index: services/amf.c
===================================================================
--- services/amf.c	(revision 1996)
+++ services/amf.c	(working copy)
@@ -350,7 +350,7 @@
  */
 static struct corosync_service_engine amf_service_engine = {
 	.name				= "openais availability management framework B.01.01",
-	.id					= AMF_SERVICE,
+	.id					= AMF_V2_SERVICE,
 	.private_data_size	= sizeof (struct amf_pd),
 	.flow_control		= COROSYNC_LIB_FLOW_CONTROL_NOT_REQUIRED,
 	.lib_init_fn		= amf_lib_init_fn,
@@ -362,6 +362,7 @@
 	.exec_engine_count	= sizeof (amf_exec_engine) / sizeof (struct corosync_exec_handler),
 	.confchg_fn		= amf_confchg_fn,
 	.exec_dump_fn		= amf_dump_fn,
+	.sync_mode		= CS_SYNC_V2,
 	.sync_init         	= amf_sync_init,
 	.sync_process      	= amf_sync_process,
 	.sync_activate     	= amf_sync_activate,
Index: services/lck.c
===================================================================
--- services/lck.c	(revision 1996)
+++ services/lck.c	(working copy)
@@ -425,6 +425,7 @@
 	.exec_engine			= lck_exec_engine,
 	.exec_engine_count		= sizeof (lck_exec_engine) / sizeof (struct corosync_exec_handler),
 	.confchg_fn			= lck_confchg_fn,
+	.sync_mode			= CS_SYNC_V2,
 	.sync_init			= lck_sync_init,
 	.sync_process			= lck_sync_process,
 	.sync_activate			= lck_sync_activate,
Index: services/clm.c
===================================================================
--- services/clm.c	(revision 1996)
+++ services/clm.c	(working copy)
@@ -214,6 +214,7 @@
 	.exec_engine		= clm_exec_engine,
 	.exec_engine_count	= sizeof (clm_exec_engine) / sizeof (struct corosync_exec_handler),
 	.confchg_fn		= clm_confchg_fn,
+	.sync_mode		= CS_SYNC_V1,
 	.sync_init		= clm_sync_init,
 	.sync_process		= clm_sync_process,
 	.sync_activate		= clm_sync_activate,
Index: services/msg.c
===================================================================
--- services/msg.c	(revision 1996)
+++ services/msg.c	(working copy)
@@ -714,6 +714,7 @@
 	.exec_engine		= msg_exec_engine,
 	.exec_engine_count	= sizeof (msg_exec_engine)/ sizeof (struct corosync_exec_handler),
 	.confchg_fn		= msg_confchg_fn,
+	.sync_mode		= CS_SYNC_V2,
 	.sync_init		= msg_sync_init,
 	.sync_process		= msg_sync_process,
 	.sync_activate		= msg_sync_activate,
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to