From: danw Date: Thu, 10 Sep 1998 18:27:23 +0000 (+0000) Subject: add extra checks to prevent disabled but mistakenly "in progress" X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/d6ea2c573ba8a693059a95688a703eab338e5458 add extra checks to prevent disabled but mistakenly "in progress" services from getting run --- diff --git a/dcm/dcm.pc b/dcm/dcm.pc index 4520e9af..cda5f7aa 100644 --- a/dcm/dcm.pc +++ b/dcm/dcm.pc @@ -314,7 +314,7 @@ void do_hosts(char *service) EXEC SQL DECLARE csr_hst2 CURSOR FOR SELECT m.name, m.mach_id FROM machine m, serverhosts sh WHERE sh.service = UPPER(:service) AND sh.inprogress = 1 - AND sh.mach_id = m.mach_id; + AND sh.enable = 1 AND sh.hosterror = 0 AND sh.mach_id = m.mach_id; EXEC SQL OPEN csr_hst2; sq = sq_create();