1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Account for a malloc failure in the asynchronous writer thread in test_async.c (CVS 3096)

FossilOrigin-Name: 2f2a8a69cb380dc30b85a792c369020fec3c79a5
This commit is contained in:
danielk1977
2006-02-14 14:02:08 +00:00
parent bf623f25cd
commit 2d9fcaa61c
4 changed files with 74 additions and 64 deletions

View File

@@ -1076,6 +1076,7 @@ static void *asyncWriterThread(void *NotUsed){
** in order to give other threads a chance to work with the write queue.
*/
if( !async.pQueueFirst || !async.ioError ){
sqlite3ApiExit(0, 0);
pthread_mutex_unlock(&async.queueMutex);
holdingMutex = 0;
if( async.ioDelay>0 ){