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

Fix an LSM problem with read-only connections and compression (not

compression-factory) callbacks.

FossilOrigin-Name: 51ee5188b03c4b9508e94afaee4bf1f224aef28875efabda8ce09a5ab641d99e
This commit is contained in:
dan
2017-11-04 08:53:37 +00:00
parent 537e70289f
commit a3bc84255a
3 changed files with 13 additions and 15 deletions

View File

@ -520,13 +520,11 @@ int lsmDbDatabaseConnect(
** recovery as necessary. Or, if this is a read-only database handle,
** defer attempting to connect to the system until a read-transaction
** is opened. */
if( pDb->bReadonly==0 ){
if( rc==LSM_OK ){
rc = lsmFsConfigure(pDb);
}
if( rc==LSM_OK ){
rc = doDbConnect(pDb);
}
if( rc==LSM_OK ){
rc = lsmFsConfigure(pDb);
}
if( rc==LSM_OK && pDb->bReadonly==0 ){
rc = doDbConnect(pDb);
}
return rc;