1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Fix a bug in the default busy handler for systems that lack usleep().

Ticket #1284. (CVS 2514)

FossilOrigin-Name: a42cb81d1173532537aed4e71091d4cd3f3a88a0
This commit is contained in:
drh
2005-06-14 02:24:31 +00:00
parent 78776ecdb1
commit 3f73708ce4
3 changed files with 9 additions and 9 deletions

View File

@@ -14,7 +14,7 @@
** other files are for internal use by SQLite and should not be
** accessed by users of the library.
**
** $Id: main.c,v 1.293 2005/05/26 16:23:34 drh Exp $
** $Id: main.c,v 1.294 2005/06/14 02:24:32 drh Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@@ -298,7 +298,7 @@ static int sqliteDefaultBusyCallback(
sqlite3OsSleep(delay);
return 1;
#else
int timeout = (int)Timeout;
int timeout = ((sqlite3 *)ptr)->busyTimeout;
if( (count+1)*1000 > timeout ){
return 0;
}