summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2007-01-30 03:28:36 +0000
committerBrian S. O'Neill <bronee@gmail.com>2007-01-30 03:28:36 +0000
commitab268b8230416d1d8eebb96fc48a4b4dd1e32ced (patch)
treed3971eec91665a4002c677d71db3bd6ca029d08c /src
parentf1d68efbd516ea37ed12a0d2da430b59b8e418f9 (diff)
Make sure index populate re-opens proper transaction after batch commit.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/indexed/ManagedIndex.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/indexed/ManagedIndex.java b/src/main/java/com/amazon/carbonado/repo/indexed/ManagedIndex.java
index ebdea0b..1a4ba95 100644
--- a/src/main/java/com/amazon/carbonado/repo/indexed/ManagedIndex.java
+++ b/src/main/java/com/amazon/carbonado/repo/indexed/ManagedIndex.java
@@ -375,7 +375,7 @@ class ManagedIndex<S extends Storable> implements IndexEntryAccessor<S> {
if (totalInserted % POPULATE_BATCH_SIZE == 0) {
txn.commit();
txn.exit();
- txn = repo.enterTransaction();
+ txn = repo.enterTopTransaction(IsolationLevel.READ_COMMITTED);
}
}
txn.commit();