fix(tdb/pcache): typo pCache->nPages as pCache->nPage

This commit is contained in:
Minglei Jin 2022-11-24 21:42:09 +08:00
parent f570d61d48
commit f5f385486d
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ static int tdbPCacheAlterImpl(SPCache *pCache, int32_t nPage) {
pCache->nFree++;
}
for (int32_t iPage = 0; iPage < pCache->nPage; iPage++) {
for (int32_t iPage = 0; iPage < pCache->nPages; iPage++) {
aPage[iPage] = pCache->aPage[iPage];
}