do not use group commit with non-durable transactions
This commit is contained in:
parent
2dcc6598d2
commit
ddc93caeae
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ static void groupCommit(stasis_log_t* log, lsn_t lsn) {
|
|||
|
||||
pendingCommits++;
|
||||
int xactcount = TactiveTransactionCount();
|
||||
if((xactcount > 1 && pendingCommits < xactcount) ||
|
||||
if((log->is_durable(log) && xactcount > 1 && pendingCommits < xactcount) ||
|
||||
(xactcount > 20 && pendingCommits < (int)((double)xactcount * 0.95))) {
|
||||
int retcode;
|
||||
while(ETIMEDOUT != (retcode = pthread_cond_timedwait(&tooFewXacts, &check_commit, &timeout))) {
|
||||
|
|
Loading…
Reference in a new issue