diff options
author | drh <drh@noemail.net> | 2006-07-26 01:39:30 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2006-07-26 01:39:30 +0000 |
commit | 881feaa04380c6c79db9a763048c2f3d04c3a73e (patch) | |
tree | 0f82df4a168d67264c3fcf8d005920ecb9107077 /src/main.c | |
parent | 5bd270b20006cb170c638028e4fdeb1e38771e26 (diff) | |
download | sqlite-881feaa04380c6c79db9a763048c2f3d04c3a73e.tar.gz sqlite-881feaa04380c6c79db9a763048c2f3d04c3a73e.zip |
Initial attempt at making sqlite3_interrupt() work even when called from
a separate thread. (CVS 3335)
FossilOrigin-Name: 35fd67d7a0c55797eb460e3bd02c96afe619f026
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c index 72d1a7abb..0a8ab426a 100644 --- a/src/main.c +++ b/src/main.c @@ -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.352 2006/07/11 14:17:52 drh Exp $ +** $Id: main.c,v 1.353 2006/07/26 01:39:30 drh Exp $ */ #include "sqliteInt.h" #include "os.h" @@ -382,8 +382,8 @@ int sqlite3_busy_timeout(sqlite3 *db, int ms){ ** Cause any pending operation to stop at its earliest opportunity. */ void sqlite3_interrupt(sqlite3 *db){ - if( !sqlite3SafetyCheck(db) ){ - db->flags |= SQLITE_Interrupt; + if( db && (db->magic==SQLITE_MAGIC_OPEN || db->magic==SQLITE_MAGIC_BUSY) ){ + db->u1.isInterrupted = 1; } } |