fixes major correctness/performance regression; test for when to force log to maintain WAL was reversed
This commit is contained in:
parent
1f336255f5
commit
97ab7670db
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ void LogForce(stasis_log_t* log, lsn_t lsn,
|
||||||
if(mode == LOG_FORCE_COMMIT) {
|
if(mode == LOG_FORCE_COMMIT) {
|
||||||
groupCommit(log, lsn);
|
groupCommit(log, lsn);
|
||||||
} else {
|
} else {
|
||||||
if(log->first_unstable_lsn(log,mode) >= lsn) {
|
if(log->first_unstable_lsn(log,mode) <= lsn) {
|
||||||
log->force_tail(log,mode);
|
log->force_tail(log,mode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue