From: mar Date: Thu, 8 Sep 1988 14:26:40 +0000 (+0000) Subject: Avoid aborting a transaction that has been deadlocked; and X-Git-Tag: KREL1~158 X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/4166e1663ee1de4addb2c151113ac16cca3f85e2 Avoid aborting a transaction that has been deadlocked; and make readlocks exclusive --- diff --git a/server/qrtn.qc b/server/qrtn.qc index 56be528b..12bbfa1d 100644 --- a/server/qrtn.qc +++ b/server/qrtn.qc @@ -69,6 +69,7 @@ int sms_open_database() /* open the database */ ## ingres sms +## set lockmode session where readlock = exclusive return ingres_errno; } @@ -308,7 +309,9 @@ out: fflush(journal); } } else { -## abort /* it never happened */ + if (status != SMS_DEADLOCK) { +## abort /* it never happened */ + } } }