* initialize performance testing library
authorMichal Voců <michal@ruk.cuni.cz>
Thu, 8 Jun 2006 14:38:34 +0000 (14:38 +0000)
committerMichal Voců <michal@ruk.cuni.cz>
Thu, 8 Jun 2006 14:38:34 +0000 (14:38 +0000)
* use SINK_PARSE sink_mode in server (not only in proxy)

org.glite.lb.server/src/bkserverd.c
org.glite.lb.server/src/stored_master.c

index 9d82ecb..2e90911 100644 (file)
@@ -686,6 +686,10 @@ int bk_clnt_data_init(void **data)
                cdata->job_index_cols = job_index_cols;
        }
 
+#ifdef LB_PERF
+       glite_wll_perftest_init(NULL, NULL, NULL, NULL, 0);
+#endif
+
        *data = cdata;
        return 0;
 }
index ed78612..5107454 100644 (file)
@@ -66,6 +66,10 @@ int edg_wll_StoreProto(edg_wll_Context ctx)
          return edg_wll_SetError(ctx,ENOTCONN,"client side");
        if(ret < 0) 
          return edg_wll_SetError(ctx,EIO,"interlogger protocol");
+#ifdef LB_PERF
+       if (sink_mode == GLITE_LB_SINK_PARSE) glite_wll_perftest_consumeEventIlMsg(buf);
+       else
+#endif
 
        handle_request(ctx,buf);
        free(buf);