mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Call sqlite3OsSleep() with an argument in microseconds, not milliseconds. (CVS 4248)
FossilOrigin-Name: 917790413ced92266bf5c7cca6d130ed7ac6221b
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
** file simultaneously, or one process from reading the database while
|
||||
** another is writing.
|
||||
**
|
||||
** @(#) $Id: pager.c,v 1.361 2007/08/20 05:36:51 danielk1977 Exp $
|
||||
** @(#) $Id: pager.c,v 1.362 2007/08/20 16:07:01 danielk1977 Exp $
|
||||
*/
|
||||
#ifndef SQLITE_OMIT_DISKIO
|
||||
#include "sqliteInt.h"
|
||||
@@ -3031,7 +3031,7 @@ static int pagerAllocatePage(Pager *pPager, PgHdr **ppPg){
|
||||
PgHdr *pPg;
|
||||
|
||||
/* Create a new PgHdr if any of the four conditions defined
|
||||
** above is met: */
|
||||
** above are met: */
|
||||
if( pPager->nPage<pPager->mxPage
|
||||
|| pPager->pFirst==0
|
||||
|| MEMDB
|
||||
@@ -3376,10 +3376,6 @@ static int pager_open_journal(Pager *pPager){
|
||||
}
|
||||
goto failed_to_open_journal;
|
||||
}
|
||||
#if 0
|
||||
sqlite3OsSetFullSync(pPager->jfd, pPager->full_fsync);
|
||||
sqlite3OsSetFullSync(pPager->fd, pPager->full_fsync);
|
||||
#endif
|
||||
pPager->journalOpen = 1;
|
||||
pPager->journalStarted = 0;
|
||||
pPager->needSync = 0;
|
||||
|
Reference in New Issue
Block a user