Changeset: 3f67c17c6265 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3f67c17c6265
Modified Files:
        tools/merovingian/daemon/forkmserver.c
Branch: Nov2019
Log Message:

Make it possible to set the mserver5 debug option (-d) from merovingian.
Use "monetdb set gdk_debug=N $database".


diffs (18 lines):

diff --git a/tools/merovingian/daemon/forkmserver.c 
b/tools/merovingian/daemon/forkmserver.c
--- a/tools/merovingian/daemon/forkmserver.c
+++ b/tools/merovingian/daemon/forkmserver.c
@@ -624,8 +624,12 @@ forkMserver(char *database, sabdb** stat
        freec = c;                                      /* following entries to 
be freed if != set */
        while (list->key != NULL) {
                if (list->val != NULL && !defaultProperty(list->key)) {
-                       argv[c++] = set;
-                       snprintf(property_other, sizeof(property_other), 
"%s=%s", list->key, list->val);
+                       if (strcmp(list->key, "gdk_debug") == 0) {
+                               snprintf(property_other, 
sizeof(property_other), "-d%s", list->val);
+                       } else {
+                               argv[c++] = set;
+                               snprintf(property_other, 
sizeof(property_other), "%s=%s", list->key, list->val);
+                       }
                        argv[c++] = strdup(property_other);
                }
                list++;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to