Permalink
Browse files

Autocommit was disabled by previous commit, fixed

  • Loading branch information...
1 parent dbaa8f4 commit beb233072d17c45a18a8ad3a9b184d07ae4f732a Jan Kotek committed Mar 16, 2012
@@ -446,7 +446,8 @@ public void clearCache() {
}
-
-
-
+ @Override
+ boolean needsAutoCommit() {
+ return super.needsAutoCommit()|| ( !commitInProgress && _hashDirties.size() > NUM_OF_DIRTY_RECORDS_BEFORE_AUTOCOMIT);
+ }
}
@@ -493,6 +493,10 @@ public void clearCache() {
}
+ @Override
+ boolean needsAutoCommit() {
+ return super.needsAutoCommit()|| ( !commitInProgress && _hashDirties.size() > NUM_OF_DIRTY_RECORDS_BEFORE_AUTOCOMIT);
+ }
}
@@ -80,6 +80,8 @@
private final boolean deleteFilesAfterClose;
private static final int AUTOCOMMIT_AFTER_N_PAGES = 1024 * 5;
+
+ static final int NUM_OF_DIRTY_RECORDS_BEFORE_AUTOCOMIT = 10000;
boolean commitInProgress = false;

0 comments on commit beb2330

Please sign in to comment.