]> andersk Git - moira.git/commitdiff
handle deadlock errors
authormar <mar>
Fri, 1 Nov 1991 18:44:05 +0000 (18:44 +0000)
committermar <mar>
Fri, 1 Nov 1991 18:44:05 +0000 (18:44 +0000)
gen/ca.dc

index c21134b7d5a62cf426534077e81723b67d9ae0a1..d452559ae5339e6ec48e0a5675a64b9e661338cf 100644 (file)
--- a/gen/ca.dc
+++ b/gen/ca.dc
@@ -43,6 +43,8 @@ char **argv;
     int id;
     EXEC SQL END DECLARE SECTION;
 
+    initialize_sms_error_table ();
+
 #ifsql INGRES
     EXEC SQL CONNECT sms;
 #endsql
@@ -159,6 +161,10 @@ char **argv;
 
  sqlerr:
     com_err(whoami, MR_INGRES_ERR, " code %d\n", sqlca.sqlcode);
+#ifsql INGRES
+    if (sqlca.sqlcode == 17700)
+      exit(MR_DEADLOCK);
+#endsql
     critical_alert("DCM", "Central America build encountered INGRES ERROR %d",
                   sqlca.sqlcode);
     exit(MR_INGRES_ERR);
This page took 0.038558 seconds and 5 git commands to generate.