1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-21 11:13:54 +03:00

Fix an off-by-one error in sqlite3_rsync.

[forum:/info/46753431d4|Forum post 46753431d4].

FossilOrigin-Name: ef3b7be6f2037871f6f1b1944fed3dda28216e7f179080d3be2e2620c031f48c
This commit is contained in:
drh
2025-09-11 10:58:49 +00:00
parent 9455a6e8b8
commit eb8089ef46
3 changed files with 8 additions and 9 deletions

View File

@@ -1854,7 +1854,7 @@ static void replicaSide(SQLiteRsync *p){
nRPage);
}else{
runSql(p,"INSERT INTO sendHash VALUES(1,1)");
subdivideHashRange(p, 2, nRPage);
subdivideHashRange(p, 2, nRPage-1);
}
sendHashMessages(p, 1, 1);
runSql(p, "PRAGMA writable_schema=ON");