Changeset: 013faa27166e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/013faa27166e
Modified Files:
        monetdb5/mal/mal_client.c
        monetdb5/mal/mal_client.h
        monetdb5/mal/mal_profiler.c
Branch: default
Log Message:

Use bool type.


diffs (63 lines):

diff --git a/monetdb5/mal/mal_client.c b/monetdb5/mal/mal_client.c
--- a/monetdb5/mal/mal_client.c
+++ b/monetdb5/mal/mal_client.c
@@ -276,7 +276,7 @@ MCinitClientRecord(Client c, oid user, b
 
        c->profticks = c->profstmt = c->profevents = NULL;
        c->error_row = c->error_fld = c->error_msg = c->error_input = NULL;
-       c->sqlprofiler = 0;
+       c->sqlprofiler = false;
        c->blocksize = BLOCK;
        c->protocol = PROTOCOL_9;
 
@@ -442,7 +442,7 @@ MCcloseClient(Client c)
                BBPunfix(c->error_input->batCacheid);
                c->error_row = c->error_fld = c->error_msg = c->error_input = 
NULL;
        }
-       c->sqlprofiler = 0;
+       c->sqlprofiler = false;
        free(c->handshake_options);
        c->handshake_options = NULL;
        MT_thread_set_qry_ctx(NULL);
diff --git a/monetdb5/mal/mal_client.h b/monetdb5/mal/mal_client.h
--- a/monetdb5/mal/mal_client.h
+++ b/monetdb5/mal/mal_client.h
@@ -68,7 +68,7 @@ typedef struct CLIENT {
        init_client initClient;
        exit_client exitClient;
        /* if set to 'S' it will put the process to sleep */
-       bit sqlprofiler;                        /* control off-line sql 
performance monitoring */
+       bool sqlprofiler;                       /* control off-line sql 
performance monitoring */
        /*
         * Each session comes with resource limitations and predefined settings.
         */
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
@@ -795,7 +795,7 @@ startProfiler(Client cntxt)
 str
 startTrace(Client cntxt)
 {
-       cntxt->sqlprofiler = TRUE;
+       cntxt->sqlprofiler = true;
        clearTrace(cntxt);
        return MAL_SUCCEED;
 }
@@ -803,7 +803,7 @@ startTrace(Client cntxt)
 str
 stopTrace(Client cntxt)
 {
-       cntxt->sqlprofiler = FALSE;
+       cntxt->sqlprofiler = false;
        return MAL_SUCCEED;
 }
 
@@ -965,7 +965,7 @@ sqlProfilerEvent(Client cntxt, MalBlkPtr
                                                false) != GDK_SUCCEED;
        if (errors > 0) {
                /* stop profiling if an error occurred */
-               cntxt->sqlprofiler = FALSE;
+               cntxt->sqlprofiler = false;
        }
 
        MT_lock_unset(&mal_profileLock);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to