diff --git a/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/coordinator/BasicAction.java b/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/coordinator/BasicAction.java index 8d53c791f8..1e57c491e6 100644 --- a/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/coordinator/BasicAction.java +++ b/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/coordinator/BasicAction.java @@ -3208,13 +3208,9 @@ protected AbstractRecord insertRecord (RecordList reclist, AbstractRecord record if (lock) { - this.synchronizationLock.lock(); - - try { + synchronized (reclist) { if (!reclist.insert(record)) record = null; - } finally { - this.synchronizationLock.unlock(); } } else