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/util.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/util.c')
-rw-r--r-- | src/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c index 79885b04d..905477d1f 100644 --- a/src/util.c +++ b/src/util.c @@ -14,7 +14,7 @@ ** This file contains functions for allocating memory, comparing ** strings, and stuff like that. ** -** $Id: util.c,v 1.191 2006/07/11 12:40:25 drh Exp $ +** $Id: util.c,v 1.192 2006/07/26 01:39:30 drh Exp $ */ #include "sqliteInt.h" #include "os.h" @@ -1151,7 +1151,7 @@ int sqlite3SafetyOn(sqlite3 *db){ return 0; }else if( db->magic==SQLITE_MAGIC_BUSY ){ db->magic = SQLITE_MAGIC_ERROR; - db->flags |= SQLITE_Interrupt; + db->u1.isInterrupted = 1; } return 1; } @@ -1167,7 +1167,7 @@ int sqlite3SafetyOff(sqlite3 *db){ return 0; }else if( db->magic==SQLITE_MAGIC_OPEN ){ db->magic = SQLITE_MAGIC_ERROR; - db->flags |= SQLITE_Interrupt; + db->u1.isInterrupted = 1; } return 1; } |