From 04f045ec5cb75198e809558a31aac71dbd46f47e Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Fri, 20 Oct 2006 01:54:36 +0000 Subject: Resolved deadlocks. --- src/main/java/com/amazon/carbonado/layout/LayoutFactory.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/com/amazon/carbonado/layout') diff --git a/src/main/java/com/amazon/carbonado/layout/LayoutFactory.java b/src/main/java/com/amazon/carbonado/layout/LayoutFactory.java index 691d9d4..89e139d 100644 --- a/src/main/java/com/amazon/carbonado/layout/LayoutFactory.java +++ b/src/main/java/com/amazon/carbonado/layout/LayoutFactory.java @@ -87,6 +87,7 @@ public class LayoutFactory implements LayoutCapability { StorableInfo info = StorableIntrospector.examine(type); Transaction txn = mRepository.enterTopTransaction(IsolationLevel.READ_COMMITTED); + txn.setForUpdate(true); try { // If type represents a new generation, then a new layout needs to // be inserted. -- cgit v1.2.3