diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2007-01-30 03:28:36 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2007-01-30 03:28:36 +0000 |
commit | ab268b8230416d1d8eebb96fc48a4b4dd1e32ced (patch) | |
tree | d3971eec91665a4002c677d71db3bd6ca029d08c /src/main/java/com/amazon | |
parent | f1d68efbd516ea37ed12a0d2da430b59b8e418f9 (diff) |
Make sure index populate re-opens proper transaction after batch commit.
Diffstat (limited to 'src/main/java/com/amazon')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/indexed/ManagedIndex.java | 2 |
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();
|