Changeset: 4fc28a22ffbd for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/4fc28a22ffbd
Modified Files:
sql/server/sql_mvc.c
Branch: sql_profiler
Log Message:
Pass the client contect to the transaction profiler event wrapper.
diffs (17 lines):
diff --git a/sql/server/sql_mvc.c b/sql/server/sql_mvc.c
--- a/sql/server/sql_mvc.c
+++ b/sql/server/sql_mvc.c
@@ -127,10 +127,12 @@ mvc_fix_depend(mvc *m, sql_column *depid
static void
profiler_event_wrapper(str phase, lng clk, ulng *tid, int state, lng usec)
{
+ Client c = getClientContext();
+
if(malProfileMode > 0)
profilerEvent((struct MalEvent) {0},
(struct NonMalEvent)
- {phase, NULL, clk, tid, state, usec});
+ {phase, c, clk, tid, state, usec});
}
sql_store
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]