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:
@@ -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 ){
|
||||
|
||||
Reference in New Issue
Block a user