Fix [ 1887608 ] SequenceCheck deadlock

This commit is contained in:
Carlos Ruiz 2008-02-06 04:58:15 +00:00
parent f9c0eaed7d
commit 14deebdab7
2 changed files with 10 additions and 1 deletions

View File

@ -280,6 +280,14 @@ public class SequenceCheck extends SvrProcess
String trxName = null; String trxName = null;
if (sp != null) if (sp != null)
trxName = sp.get_TrxName(); trxName = sp.get_TrxName();
// CarlosRuiz - globalqss - [ 1887608 ] SequenceCheck deadlock
// Commit previous work on AD_Sequence
// previously could update a sequence record needed now that is going to create new ones
Trx trx = Trx.get(trxName, false);
trx.commit();
// Sequence for DocumentNo/Value // Sequence for DocumentNo/Value
MClient[] clients = MClient.getAll(ctx); MClient[] clients = MClient.getAll(ctx);
for (int i = 0; i < clients.length; i++) for (int i = 0; i < clients.length; i++)

View File

@ -1,3 +1,4 @@
-- TODO: Currently not inserting new sequences
DECLARE DECLARE
cmdsys VARCHAR2 (1000); cmdsys VARCHAR2 (1000);
cmdnosys VARCHAR2 (1000); cmdnosys VARCHAR2 (1000);
@ -116,4 +117,4 @@ BEGIN
COMMIT; COMMIT;
DBMS_OUTPUT.PUT_LINE ('End'); DBMS_OUTPUT.PUT_LINE ('End');
END; END;
/ /