Jerome Flesch reported that trackstart called twice (or more) will do
multiple list_add operations.  This change only does the list_add once,
but allows track to be called multiple times to change the tracking
operational mode.

Regards
-steve
Index: services/clm.c
===================================================================
--- services/clm.c	(revision 2077)
+++ services/clm.c	(working copy)
@@ -719,9 +719,11 @@
 		req_lib_clm_clustertrack->track_flags & SA_TRACK_CHANGES_ONLY) {
 
 		clm_pd->track_flags = req_lib_clm_clustertrack->track_flags;
+
+		if (clm_pd->tracking_enabled == 0) {
+			list_add (&clm_pd->list, &library_notification_send_listhead);
+		}
 		clm_pd->tracking_enabled = 1;
-
-		list_add (&clm_pd->list, &library_notification_send_listhead);
 	}
 
 	api->ipc_response_send (conn, &res_lib_clm_clustertrack,
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to