LB_PERF stuff
authorJan Pospíšil <honik@ntc.zcu.cz>
Thu, 18 May 2006 19:14:31 +0000 (19:14 +0000)
committerJan Pospíšil <honik@ntc.zcu.cz>
Thu, 18 May 2006 19:14:31 +0000 (19:14 +0000)
org.glite.lb.client/Makefile
org.glite.lb.client/src/producer.c

index 270d978..b7af80f 100644 (file)
@@ -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}
 
index 55520d6..44e076e 100644 (file)
@@ -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);