executing instructions step failed. clear it if the sending data step
fails too.
}
if (type == REPLICATED)
- {
- /* We're giving up, so clear the inprogress flag on
- any hosts in this service we haven't gotten to yet */
- EXEC SQL UPDATE serverhosts SET inprogress = 0
- WHERE service = UPPER(:service);
- break;
- }
+ break;
}
else
{
EXEC SQL CLOSE csr_hst2;
}
+ if (type == REPLICATED)
+ {
+ /* Clear inprogress flag on any hosts we started but didn't
+ * finish.
+ */
+ EXEC SQL UPDATE serverhosts SET inprogress = 0
+ WHERE service = UPPER(:service);
+ }
+
EXEC SQL WHENEVER SQLERROR DO dbmserr();
if (status && !SOFT_FAIL(status) && type == REPLICATED)
{