Skip to content

Commit 1a1b91b

Browse files
author
auxten
committed
Fix sqlite3BtreeBeginTrans args change
1 parent 134b8a6 commit 1a1b91b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sqlite3-binding.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -224770,8 +224770,8 @@ int sqlcipher_codec_ctx_migrate(codec_ctx *ctx) {
224770224770
pSrc = pDb->pBt;
224771224771

224772224772
rc = sqlite3_exec(db, "BEGIN;", NULL, NULL, NULL);
224773-
rc = sqlite3BtreeBeginTrans(pSrc, 2);
224774-
rc = sqlite3BtreeBeginTrans(pDest, 2);
224773+
rc = sqlite3BtreeBeginTrans(pSrc, 2, 0);
224774+
rc = sqlite3BtreeBeginTrans(pDest, 2, 0);
224775224775

224776224776
assert( 1==sqlite3BtreeIsInTrans(pDest) );
224777224777
assert( 1==sqlite3BtreeIsInTrans(pSrc) );
@@ -225589,7 +225589,7 @@ int sqlite3_rekey_v2(sqlite3 *db, const char *zDb, const void *pKey, int nKey) {
225589225589
** 3. If that goes ok then commit and put ctx->rekey into ctx->key
225590225590
** note: don't deallocate rekey since it may be used in a subsequent iteration
225591225591
*/
225592-
rc = sqlite3BtreeBeginTrans(pDb->pBt, 1); /* begin write transaction */
225592+
rc = sqlite3BtreeBeginTrans(pDb->pBt, 1, 0); /* begin write transaction */
225593225593
sqlite3PagerPagecount(pPager, &page_count);
225594225594
for(pgno = 1; rc == SQLITE_OK && pgno <= (unsigned int)page_count; pgno++) { /* pgno's start at 1 see pager.c:pagerAcquire */
225595225595
if(!sqlite3pager_is_mj_pgno(pPager, pgno)) { /* skip this page (see pager.c:pagerAcquire for reasoning) */

0 commit comments

Comments
 (0)