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