diff options
author | drh <> | 2022-10-27 12:46:17 +0000 |
---|---|---|
committer | drh <> | 2022-10-27 12:46:17 +0000 |
commit | f7b58da8316c85567ba84a84f72e4e7c6c16f542 (patch) | |
tree | 2e20f73a88b0c5308b8af8233edcf91473e48b62 /src/os_kv.c | |
parent | bb5136e5cbd949b0efde2b75b07ebef992a24e43 (diff) | |
download | sqlite-f7b58da8316c85567ba84a84f72e4e7c6c16f542.tar.gz sqlite-f7b58da8316c85567ba84a84f72e4e7c6c16f542.zip |
The kvvfs VFS should remember the page size when writing to the database.
FossilOrigin-Name: fc5503c8acb085042e877c9de43256a4fee27f63ab35e2ddad18e40734ed00d4
Diffstat (limited to 'src/os_kv.c')
-rw-r--r-- | src/os_kv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os_kv.c b/src/os_kv.c index ecccacf61..7bb73ce4f 100644 --- a/src/os_kv.c +++ b/src/os_kv.c @@ -629,6 +629,8 @@ static int kvvfsWriteDb( SQLITE_KV_LOG(("xWrite('%s-db',%d,%lld)\n", pFile->zClass, iAmt, iOfst)); assert( iAmt>=512 && iAmt<=65536 ); assert( (iAmt & (iAmt-1))==0 ); + assert( pFile->szPage<0 || pFile->szPage==iAmt ); + pFile->szPage = iAmt; pgno = 1 + iOfst/iAmt; sqlite3_snprintf(sizeof(zKey), zKey, "%u", pgno); kvvfsEncode(zBuf, iAmt, aData); |