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/repo/sleepycat/BDBStorage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/amazon/carbonado/repo/sleepycat') 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 implements Storage, Storag } info.setDatabaseName(getStorableType().getName()); - Transaction txn = repo.enterTopTransaction(IsolationLevel.READ_COMMITTED); + txn.setForUpdate(true); try { if (!info.tryLoad()) { if (layout == null) { -- cgit v1.2.3