diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2006-10-20 01:54:36 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2006-10-20 01:54:36 +0000 |
commit | 04f045ec5cb75198e809558a31aac71dbd46f47e (patch) | |
tree | 32a3b1b618e518761ef06f5301633cc63332d9b7 /src/main/java/com/amazon/carbonado/repo/sleepycat | |
parent | c1c1738d5d73aff9a4964fb9d5e91dd947291a63 (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.java | 2 |
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) {
|