summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/layout
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2006-10-16 00:35:37 +0000
committerBrian S. O'Neill <bronee@gmail.com>2006-10-16 00:35:37 +0000
commit609cea3eb9d65330dee18b1893729e0438b83981 (patch)
tree7de3ca549429633cfe6b0e636727db37bd083099 /src/main/java/com/amazon/carbonado/layout
parentf0ec30fd9cc7fa19f9f9bf82d7d7449a65d90359 (diff)
Resolved deadlocks.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/layout')
-rw-r--r--src/main/java/com/amazon/carbonado/layout/LayoutFactory.java3
1 files changed, 2 insertions, 1 deletions
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.