Changeset: 626befa2414f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/626befa2414f
Modified Files:
        sql/server/sql_mvc.c
Branch: Jul2021_prof_ext
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
@@ -126,10 +126,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 -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to