1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

The sqlite_busy_timeout() function was interpreting its second argument

as seconds, not milliseconds as advertised.  This patch fixes the problem. (CVS 284)

FossilOrigin-Name: abe5a25b9dcf1e47f3cb37fd419f620db03bd4da
This commit is contained in:
drh
2001-10-09 13:46:01 +00:00
parent 9d31976c3d
commit 3109e02ec5
3 changed files with 10 additions and 10 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.44 2001/10/08 13:22:33 drh Exp $
** $Id: main.c,v 1.45 2001/10/09 13:46:01 drh Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@@ -474,8 +474,8 @@ static int sqliteDefaultBusyCallback(
break;
}
}
if( prior_delay + delay > timeout*1000 ){
delay = timeout*1000 - prior_delay;
if( prior_delay + delay > timeout ){
delay = timeout - prior_delay;
if( delay<=0 ) return 0;
}
sqliteOsSleep(delay);