diff --git a/src/stasis/logger/safeWrites.c b/src/stasis/logger/safeWrites.c index 99a340a..78dca57 100644 --- a/src/stasis/logger/safeWrites.c +++ b/src/stasis/logger/safeWrites.c @@ -420,7 +420,7 @@ static void syncLog_LogWriter(stasis_log_t * log, stasis_log_safe_writes_state* sw = log->impl; lsn_t newFlushedLSN; - newFlushedLSN = log_crc_entry(log) + sizeofInternalLogEntry_LogWriter(log, 0); + newFlushedLSN = log_crc_entry(log) + sizeof(lsn_t) + sizeofInternalLogEntry_LogWriter(log, 0); fflush(sw->fp);