summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-10 00:04:41 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-10 00:04:41 +0000
commitfb5be2f17a6bb9b691ce4e24fd1e65129b377a27 (patch)
tree1b2cd3b0dd9e78872239a8c02cec503d464c10b5 /third_party
parentee7b32e2b048a7b1aa7d54564b00f50d8102a7f9 (diff)
downloadchromium_src-fb5be2f17a6bb9b691ce4e24fd1e65129b377a27.zip
chromium_src-fb5be2f17a6bb9b691ce4e24fd1e65129b377a27.tar.gz
chromium_src-fb5be2f17a6bb9b691ce4e24fd1e65129b377a27.tar.bz2
Temporarilly comment out SQLite load optimization
This is meant to test to see if we can reduce SQL related crashes by removing the pre-load optimization. I also added a line of defensive code (initializing a pointer). r=brettw Review URL: http://codereview.chromium.org/203011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25822 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/sqlite/src/pager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/sqlite/src/pager.c b/third_party/sqlite/src/pager.c
index b9f50a4..a124b00 100644
--- a/third_party/sqlite/src/pager.c
+++ b/third_party/sqlite/src/pager.c
@@ -5408,7 +5408,7 @@ int sqlite3PagerLoadall(Pager* pPager)
* loading all of the pages we want to.
*/
for(i=1; i <= loadPages && pPager->nPage < pPager->mxPage; i++) {
- DbPage *pPage;
+ DbPage *pPage = 0;
rc = sqlite3PagerAcquire2(pPager, i, &pPage, 0,
&fileData[(i-1)*(i64)pPager->pageSize]);
if (rc != SQLITE_OK)