1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

More adjustments to the incrblob channel: Apparently you need to wait

until the close2Proc is called with a flag of 0 before actually shutting
down the channel.

FossilOrigin-Name: fa549a5507b5f805b469b4360c11155aa9d22043f01f6d9428bf44d0f2351eb0
This commit is contained in:
drh
2024-07-30 18:49:20 +00:00
parent 15669d302d
commit a28a784ef4
3 changed files with 8 additions and 12 deletions

View File

@ -254,11 +254,7 @@ static int SQLITE_TCLAPI incrblobClose2(
if( flags ){
p->isClosed |= flags;
if( (p->isClosed & (TCL_CLOSE_READ|TCL_CLOSE_WRITE))
!= (TCL_CLOSE_READ|TCL_CLOSE_WRITE) ){
/* Not yet fully closed. Just return. */
return TCL_OK;
}
return TCL_OK;
}
/* If we reach this point, then we really do need to close the channel */