summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/layout
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2006-10-20 01:54:36 +0000
committerBrian S. O'Neill <bronee@gmail.com>2006-10-20 01:54:36 +0000
commit04f045ec5cb75198e809558a31aac71dbd46f47e (patch)
tree32a3b1b618e518761ef06f5301633cc63332d9b7 /src/main/java/com/amazon/carbonado/layout
parentc1c1738d5d73aff9a4964fb9d5e91dd947291a63 (diff)
Resolved deadlocks.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/layout')
-rw-r--r--src/main/java/com/amazon/carbonado/layout/LayoutFactory.java1
1 files changed, 1 insertions, 0 deletions
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.