Add a cookie mechanism to ensure that the %_config table is re-read as required.

FossilOrigin-Name: bb4a37b53de60da9ec8b9317eec14afa99690828
This commit is contained in:
dan
2014-11-28 20:01:13 +00:00
parent cb11e73fc2
commit ca7fad3d2c
15 changed files with 170 additions and 70 deletions
+7
View File
@@ -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;
}