1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Add extended error code SQLITE_BUSY_SNAPSHOT - returned in WAL mode when a read-transaction cannot be upgraded to a write-transaction because it is reading from a snapshot other than the most recently committed.

FossilOrigin-Name: 361c22969aa75340ed696e00e3dc5d17d5493bee
This commit is contained in:
dan
2013-06-27 11:46:27 +00:00
parent db95f68b14
commit f73819af05
6 changed files with 105 additions and 37 deletions

View File

@@ -2463,7 +2463,7 @@ int sqlite3WalBeginWriteTransaction(Wal *pWal){
if( memcmp(&pWal->hdr, (void *)walIndexHdr(pWal), sizeof(WalIndexHdr))!=0 ){
walUnlockExclusive(pWal, WAL_WRITE_LOCK, 1);
pWal->writeLock = 0;
rc = SQLITE_BUSY;
rc = SQLITE_BUSY_SNAPSHOT;
}
return rc;