From ab268b8230416d1d8eebb96fc48a4b4dd1e32ced Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Tue, 30 Jan 2007 03:28:36 +0000 Subject: Make sure index populate re-opens proper transaction after batch commit. --- src/main/java/com/amazon/carbonado/repo/indexed/ManagedIndex.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') 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 implements IndexEntryAccessor { if (totalInserted % POPULATE_BATCH_SIZE == 0) { txn.commit(); txn.exit(); - txn = repo.enterTransaction(); + txn = repo.enterTopTransaction(IsolationLevel.READ_COMMITTED); } } txn.commit(); -- cgit v1.2.3