fixes major correctness/performance regression; test for when to force log to maintain WAL was reversed

This commit is contained in:
Sears Russell 2008-12-12 00:05:42 +00:00
parent 1f336255f5
commit 97ab7670db

View file

@ -187,7 +187,7 @@ void LogForce(stasis_log_t* log, lsn_t lsn,
if(mode == LOG_FORCE_COMMIT) {
groupCommit(log, lsn);
} else {
if(log->first_unstable_lsn(log,mode) >= lsn) {
if(log->first_unstable_lsn(log,mode) <= lsn) {
log->force_tail(log,mode);
}
}