Changeset: e126bb238f7e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e126bb238f7e
Modified Files:
        tools/merovingian/client/monetdb.c
Branch: Mar2011
Log Message:

monetdb: fix logic error causing start/stop -a to misbehave

Fix for bug #2788.  Due to an inversed condition check, -a for start,
stop and kill would needlessly show errors for already started, stopped
(or crashed) servers.


diffs (20 lines):

diff --git a/tools/merovingian/client/monetdb.c 
b/tools/merovingian/client/monetdb.c
--- a/tools/merovingian/client/monetdb.c
+++ b/tools/merovingian/client/monetdb.c
@@ -940,7 +940,7 @@
                 * databases.  In this mode we should omit starting already
                 * started databases, so we need to check first. */
 
-               if (doall != 1 && (
+               if (doall == 1 && (
                                ((mode == STOP || mode == KILL) && stats->state 
!= SABdbRunning)
                                || (mode == START && stats->state == 
SABdbRunning)))
                {
@@ -961,7 +961,6 @@
                prev = stats;
                stats = stats->next;
        }
-       
 
        if (orig != NULL) {
                simple_argv_cmd(argv[0], orig, type, NULL, action);
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to