From 97ab7670dbef5aa9331712620d4fe89d67973dd1 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Fri, 12 Dec 2008 00:05:42 +0000 Subject: [PATCH] fixes major correctness/performance regression; test for when to force log to maintain WAL was reversed --- src/stasis/logger/logger2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stasis/logger/logger2.c b/src/stasis/logger/logger2.c index 14ed3fb..a40f740 100644 --- a/src/stasis/logger/logger2.c +++ b/src/stasis/logger/logger2.c @@ -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); } }