From 609cea3eb9d65330dee18b1893729e0438b83981 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Mon, 16 Oct 2006 00:35:37 +0000 Subject: Resolved deadlocks. --- src/main/java/com/amazon/carbonado/layout/LayoutFactory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (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 8a0ede8..691d9d4 100644 --- a/src/main/java/com/amazon/carbonado/layout/LayoutFactory.java +++ b/src/main/java/com/amazon/carbonado/layout/LayoutFactory.java @@ -26,6 +26,7 @@ import org.cojen.util.SoftValuedHashMap; import com.amazon.carbonado.Cursor; import com.amazon.carbonado.FetchException; import com.amazon.carbonado.FetchNoneException; +import com.amazon.carbonado.IsolationLevel; import com.amazon.carbonado.PersistException; import com.amazon.carbonado.Repository; import com.amazon.carbonado.RepositoryException; @@ -85,7 +86,7 @@ public class LayoutFactory implements LayoutCapability { StorableInfo info = StorableIntrospector.examine(type); - Transaction txn = mRepository.enterTransaction(); + Transaction txn = mRepository.enterTopTransaction(IsolationLevel.READ_COMMITTED); try { // If type represents a new generation, then a new layout needs to // be inserted. -- cgit v1.2.3