From b4daffd600cae597a1fadb737663cc033c05d5eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Posp=C3=AD=C5=A1il?= Date: Thu, 18 May 2006 19:14:31 +0000 Subject: [PATCH] LB_PERF stuff --- org.glite.lb.client/Makefile | 6 +++++- org.glite.lb.client/src/producer.c | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/org.glite.lb.client/Makefile b/org.glite.lb.client/Makefile index 270d978..b7af80f 100644 --- a/org.glite.lb.client/Makefile +++ b/org.glite.lb.client/Makefile @@ -71,6 +71,10 @@ ifdef LB_STANDALONE LB_STANDALONE_FLAGS:=-DLB_STANDALONE endif +ifdef LB_PERF + LB_PERF_FLAGS:=-DLB_PERF -DLB_PERF_DROP +endif + CFLAGS:=${DEBUG} \ -I${top_srcdir}/src -I${top_srcdir}/interface \ -I${stagedir}/include \ @@ -78,7 +82,7 @@ CFLAGS:=${DEBUG} \ -I${expat_prefix}/include \ -I${mysql_prefix}/include -I${mysql_prefix}/include/mysql \ ${COVERAGE_FLAGS} \ - -D_GNU_SOURCE ${LB_STANDALONE_FLAGS} + -D_GNU_SOURCE ${LB_STANDALONE_FLAGS} ${LB_PERF_FLAGS} CXXFLAGS:=${CFLAGS} diff --git a/org.glite.lb.client/src/producer.c b/org.glite.lb.client/src/producer.c index 55520d6..44e076e 100644 --- a/org.glite.lb.client/src/producer.c +++ b/org.glite.lb.client/src/producer.c @@ -408,6 +408,7 @@ static int edg_wll_LogEventMaster( } /* and send the message */ +#ifndef LB_PERF_DROP if (flags & LOGFLAG_NORMAL) { /* to the local-logger: */ ret = edg_wll_DoLogEvent(context, out); @@ -420,6 +421,7 @@ static int edg_wll_LogEventMaster( } else { edg_wll_SetError(context,ret = EINVAL,"edg_wll_LogEventMaster(): wrong flag specified"); } +#endif edg_wll_logeventmaster_end: va_end(fmt_args); -- 1.8.2.3