Update of /cvsroot/monetdb/MonetDB5/src/tools
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25949
Modified Files:
monetdb.mx
Log Message:
Solve a segfault.
Index: monetdb.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/tools/monetdb.mx,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- monetdb.mx 8 Sep 2007 17:39:25 -0000 1.32
+++ monetdb.mx 8 Sep 2007 18:11:07 -0000 1.33
@@ -217,7 +217,7 @@
/* override if locked for brevity */
if (stats->locked == 1)
- state = "mainten";
+ state = "locked";
secondsToString(avg, uplog.avguptime, 0);
@@ -255,7 +255,7 @@
printf(" location: %s\n", stats->path);
printf(" database name: %s\n", stats->dbname);
printf(" state: %s\n", state);
- printf(" maintenance mode: %s\n", stats->locked == 1 ? "yes" :
"no");
+ printf(" locked: %s\n", stats->locked == 1 ? "yes" : "no");
entry = stats->scens;
printf(" scenarios:");
if (entry == NULL) {
@@ -334,7 +334,7 @@
break;
}
if (stats->locked == 1)
- strcat(buf, ", under maintenance");
+ strcat(buf, ", locked");
printf("database %s, %s\n", stats->dbname, buf);
printf(" crash average: %d.00 %.2f %.2f (over 1, 15, 30
starts) "
"in total %d crashes\n",
@@ -438,7 +438,7 @@
GDKfree(e);
exit(2);
}
- if( (int) strlen(stats->dbname) >len)
+ if( stats && stats->dbname && (int)
strlen(stats->dbname) >len)
len = (int) strlen(stats->dbname);
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins