From df900a585efab81cd5e500a11c10f0fdfa415e96 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Thu, 22 May 2008 13:41:53 +0000 Subject: [PATCH] fix handling message priority -- only LOGFLAG_SYNC triggers waiting for confirmation --- org.glite.lb.logger/src/logd_proto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.glite.lb.logger/src/logd_proto.c b/org.glite.lb.logger/src/logd_proto.c index f79a2c9..8b93ae7 100644 --- a/org.glite.lb.logger/src/logd_proto.c +++ b/org.glite.lb.logger/src/logd_proto.c @@ -496,7 +496,7 @@ int edg_wll_log_proto_server(edg_wll_GssConnection *con, struct timeval *timeout #endif /* if not priority send now the answer back to client */ - if (!event->any.priority) { + if (!(event->any.priority & EDG_WLL_LOGFLAG_SYNC)) { if (!send_answer_back(con,answer,timeout)) { answer_sent = 1; } @@ -504,7 +504,7 @@ int edg_wll_log_proto_server(edg_wll_GssConnection *con, struct timeval *timeout /* send message via IPC (UNIX socket) */ if (!noipc) { - if (event->any.priority) { + if (event->any.priority & EDG_WLL_LOGFLAG_SYNC) { edg_wll_ll_log(LOG_DEBUG,"Initializing 2nd UNIX socket (%s) for priority messages confirmation...",confirm_sock_name); if(init_confirmation() < 0) { edg_wll_ll_log(LOG_DEBUG,"error.\n"); @@ -528,7 +528,7 @@ int edg_wll_log_proto_server(edg_wll_GssConnection *con, struct timeval *timeout goto edg_wll_log_proto_server_end_1; } else edg_wll_ll_log(LOG_DEBUG,"o.k.\n"); - if (event->any.priority) { + if (event->any.priority & EDG_WLL_LOGFLAG_SYNC) { edg_wll_ll_log(LOG_INFO,"Waiting for confirmation..."); if ((count = wait_for_confirmation(timeout, &answer)) < 0) { edg_wll_ll_log(LOG_INFO,"error.\n"); -- 1.8.2.3