Add a cookie mechanism to ensure that the %_config table is re-read as required.
FossilOrigin-Name: bb4a37b53de60da9ec8b9317eec14afa99690828
This commit is contained in:
@@ -769,6 +769,13 @@ int sqlite3Fts5StorageConfigValue(
|
||||
sqlite3_step(pReplace);
|
||||
rc = sqlite3_reset(pReplace);
|
||||
}
|
||||
if( rc==SQLITE_OK ){
|
||||
int iNew = p->pConfig->iCookie + 1;
|
||||
rc = sqlite3Fts5IndexSetCookie(p->pIndex, iNew);
|
||||
if( rc==SQLITE_OK ){
|
||||
p->pConfig->iCookie = iNew;
|
||||
}
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user