From: Jan Pospíšil Date: Thu, 18 May 2006 19:14:31 +0000 (+0000) Subject: LB_PERF stuff X-Git-Tag: gridsite-core_R_1_1_19~14 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=b4daffd600cae597a1fadb737663cc033c05d5eb;p=jra1mw.git LB_PERF stuff --- 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);