1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Add a missing walIndexUnmap() to sqlite3WalSnapshotOpen().

FossilOrigin-Name: 72b95fde15dae56390dc8d4168fb2757447e289e
This commit is contained in:
dan
2010-04-30 09:32:06 +00:00
parent 5047af405b
commit ba51590bcd
4 changed files with 13 additions and 9 deletions

View File

@@ -889,6 +889,8 @@ int sqlite3WalOpenSnapshot(Wal *pWal, int *pChanged){
}
}
}
walIndexUnmap(pWal);
return rc;
}
@@ -1082,6 +1084,7 @@ int sqlite3WalFrames(
assert( WAL_FRAME_HDRSIZE==(4 * 2 + 2*sizeof(u32)) );
assert( pList );
assert( pWal->lockState==SQLITE_SHM_WRITE );
assert( pWal->pWiData==0 );
/* If this is the first frame written into the log, write the log
** header to the start of the log file. See comments at the top of
@@ -1158,6 +1161,7 @@ int sqlite3WalFrames(
return rc;
}
}
assert( pWal->pWiData==0 );
/* Append data to the log summary. It is not necessary to lock the
** wal-index to do this as the RESERVED lock held on the db file