From 56dbf70bb1c7f1d14ce2b48a1931bbb347e509ec Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Sun, 28 Jun 2009 05:21:14 +0000 Subject: [PATCH] Remove hard coded sync values and use defines from coroapi.h. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2314 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/exec/main.c b/exec/main.c index 11cefb4c..2e83ed39 100644 --- a/exec/main.c +++ b/exec/main.c @@ -272,11 +272,11 @@ static int corosync_sync_v2_callbacks_retrieve ( { int res; - if (minimum_sync_mode == CS_SYNC_V1 && service_id == CLM_SERVICE && ais_service[CLM_SERVICE] == NULL) { + if (minimum_sync_mode == CS_SYNC_V2 && service_id == CLM_SERVICE && ais_service[CLM_SERVICE] == NULL) { res = evil_callbacks_load (service_id, callbacks); return (res); } - if (minimum_sync_mode == CS_SYNC_V1 && service_id == EVT_SERVICE && ais_service[EVT_SERVICE] == NULL) { + if (minimum_sync_mode == CS_SYNC_V2 && service_id == EVT_SERVICE && ais_service[EVT_SERVICE] == NULL) { res = evil_callbacks_load (service_id, callbacks); return (res); } @@ -990,13 +990,13 @@ int main (int argc, char **argv) } evil_init (api); - if (minimum_sync_mode == 1) { + if (minimum_sync_mode == CS_SYNC_V2) { log_printf (LOGSYS_LEVEL_NOTICE, "Compatibility mode set to none. Using V2 of the synchronization engine.\n"); sync_v2_init ( corosync_sync_v2_callbacks_retrieve, corosync_sync_completed); } else - if (minimum_sync_mode == 0) { + if (minimum_sync_mode == CS_SYNC_V1) { log_printf (LOGSYS_LEVEL_NOTICE, "Compatibility mode set to whitetank. Using V1 and V2 of the synchronization engine.\n"); sync_register ( corosync_sync_callbacks_retrieve,