From: drh Date: Fri, 11 Aug 2017 20:22:30 +0000 (+0000) Subject: Add another PAGERTRACE() macro to show when pages are added to Pager.pAllRead. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f16a96d4bc71ea54d61a3bbe706eb8350530b18;p=thirdparty%2Fsqlite.git Add another PAGERTRACE() macro to show when pages are added to Pager.pAllRead. No impact on production builds. FossilOrigin-Name: 11054cf5e8c24ef9ca869d558a0ca6750b56103c3b3793dc4afcef75192ea943 --- diff --git a/manifest b/manifest index 083bfe611d..10e8ee54df 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Add\sa\sPAGERTRACE()\smacro\sto\slog\swhen\sframes\sare\swritten\sinto\sthe\sWAL\sfile.\nThis\sis\sfor\sanalysis\sonly\sand\sis\sa\sno-op\sfor\sproduction\sbuilds. -D 2017-08-11T19:31:53.502 +C Add\sanother\sPAGERTRACE()\smacro\sto\sshow\swhen\spages\sare\sadded\sto\sPager.pAllRead.\nNo\simpact\son\sproduction\sbuilds. +D 2017-08-11T20:22:30.659 F Makefile.in d9873c9925917cca9990ee24be17eb9613a668012c85a343aef7e5536ae266e8 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434 F Makefile.msc 02b469e9dcd5b7ee63fc1fb05babc174260ee4cfa4e0ef2e48c3c6801567a016 @@ -444,7 +444,7 @@ F src/os_setup.h 0dbaea40a7d36bf311613d31342e0b99e2536586 F src/os_unix.c a361273749229755f92c8f0e3e4855054ad39bbc5c65773e8db5d0b79afa632c F src/os_win.c 964165b66cde03abc72fe948198b01be608436894732eadb94c8720d2467f223 F src/os_win.h 7b073010f1451abe501be30d12f6bc599824944a -F src/pager.c 7fbee7d787ada94b523cb50f92cd89b0eb9a297a1b4328260748b3df0619140e +F src/pager.c fac516ae6a04a45b2e84804245d0d0c38be07e8dd62be1f7613c83913f681570 F src/pager.h 403b7d242616f8742ec149ede4a06b3e66896c554ce09c2abeddb926fdd1b707 F src/parse.y bcd8c5d9442518887df1fc9c35d454126927f705ae262cd3981c16bf297e910e F src/pcache.c 62835bed959e2914edd26afadfecce29ece0e870 @@ -1657,7 +1657,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0 -P 47e716952d4a5d893b75726a2c52202cb0bc8ce1f75131e920a3ac2e202a507e -R dd67bd244e76571fe616a1fa57b01237 +P 39f39e3d9a083eebe2f8dd5812d20c5b07cc17607b04b573a52fde6d00666f36 +R 44b0453e47b7d15fed17613bc4cf70e5 U drh -Z d2720ec37e28e2f9ee94d83f86f8a988 +Z f6a60fb915e7da3c7036aeb9a03bed52 diff --git a/manifest.uuid b/manifest.uuid index 99b0390e14..e9bedf7cbe 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -39f39e3d9a083eebe2f8dd5812d20c5b07cc17607b04b573a52fde6d00666f36 \ No newline at end of file +11054cf5e8c24ef9ca869d558a0ca6750b56103c3b3793dc4afcef75192ea943 \ No newline at end of file diff --git a/src/pager.c b/src/pager.c index 3b172d5e78..733d65d436 100644 --- a/src/pager.c +++ b/src/pager.c @@ -5500,6 +5500,7 @@ static int getPageNormal( ** mark it as read in the pAllRead vector. */ pPg = 0; if( pPager->pAllRead && pgno<=pPager->dbOrigSize ){ + PAGERTRACE(("USING page %d\n", pgno)); rc = sqlite3BitvecSet(pPager->pAllRead, pgno); if( rc!=SQLITE_OK ) goto pager_acquire_err; }