Changeset: 14fa83659bd0 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/14fa83659bd0
Modified Files:
        tools/mserver/mserver5.c
Branch: Jan2022
Log Message:

Don't call GDKcreatedir if running in memory (it will fail).
Just make sure the parent directory of the dbtrace file exists.


diffs (12 lines):

diff --git a/tools/mserver/mserver5.c b/tools/mserver/mserver5.c
--- a/tools/mserver/mserver5.c
+++ b/tools/mserver/mserver5.c
@@ -600,7 +600,7 @@ main(int argc, char **av)
 
        if (dbtrace) {
                /* GDKcreatedir makes sure that all parent directories of 
dbtrace exist */
-               if (GDKcreatedir(dbtrace) != GDK_SUCCEED) {
+               if (!inmemory && GDKcreatedir(dbtrace) != GDK_SUCCEED) {
                        fprintf(stderr, "!ERROR: cannot create directory for 
%s\n", dbtrace);
                        exit(1);
                }
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to