summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/repo/sleepycat
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/repo/sleepycat
parentc1c1738d5d73aff9a4964fb9d5e91dd947291a63 (diff)
Resolved deadlocks.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo/sleepycat')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java
index 20ab89f..331c7b0 100644
--- a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java
+++ b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java
@@ -721,8 +721,8 @@ abstract class BDBStorage<Txn, S extends Storable> implements Storage<S>, Storag
}
info.setDatabaseName(getStorableType().getName());
-
Transaction txn = repo.enterTopTransaction(IsolationLevel.READ_COMMITTED);
+ txn.setForUpdate(true);
try {
if (!info.tryLoad()) {
if (layout == null) {