Changeset: 392eacc3d092 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/392eacc3d092
Modified Files:
        monetdb5/mal/mal_profiler.c
Branch: sql_profiler
Log Message:

Reverse order of field for consistency


diffs (15 lines):

diff --git a/monetdb5/mal/mal_profiler.c b/monetdb5/mal/mal_profiler.c
--- a/monetdb5/mal/mal_profiler.c
+++ b/monetdb5/mal/mal_profiler.c
@@ -190,9 +190,9 @@ prepareNonMalEvent(Client cntxt, str pha
                        query = mal_quote(cntxt->query, strlen(cntxt->query));
        }
 
-       if (!logadd(&logbuf, "{\"clk\":"ULLFMT"", mclk))
+       if (sessionid != -1 && !logadd(&logbuf, "{\"sessionid\":\"%d\"", 
sessionid))
                goto cleanup_and_exit;
-       if (sessionid != -1 && !logadd(&logbuf, ", \"sessionid\":\"%d\"", 
sessionid))
+       if (!logadd(&logbuf, ", \"clk\":"ULLFMT"", mclk))
                goto cleanup_and_exit;
        if (!logadd(&logbuf, ", \"thread\":%d, \"phase\":\"%s\"",
                                THRgettid(), phase))
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to