Avoid excess syncs when padding a transaction in a WAL.

FossilOrigin-Name: 1f24ae716df6232de768e245ea990049deee3c22
This commit is contained in:
drh
2011-12-23 13:32:07 +00:00
parent cc8d10a0fd
commit 4e5e108e83
3 changed files with 9 additions and 8 deletions
+2 -1
View File
@@ -2829,8 +2829,9 @@ int sqlite3WalFrames(
iOffset += szFrame;
nExtra++;
}
}else{
rc = sqlite3OsSync(w.pFd, sync_flags & SQLITE_SYNC_MASK);
}
rc = sqlite3OsSync(w.pFd, sync_flags & SQLITE_SYNC_MASK);
}
/* If this frame set completes the first transaction in the WAL and