aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2010-07-29 10:13:25 +0000
committerdrh <drh@noemail.net>2010-07-29 10:13:25 +0000
commit0cf68a9b175b5fef19ab3470bd8a594f81eb6ee7 (patch)
tree62f9611d0d114a52223241592e8b2ab1bfe07761 /src
parentdf0db0feb5da4b795b48e628918399a3bb8b0d08 (diff)
downloadsqlite-0cf68a9b175b5fef19ab3470bd8a594f81eb6ee7.tar.gz
sqlite-0cf68a9b175b5fef19ab3470bd8a594f81eb6ee7.zip
Unconditionally include the pTmpSpace size in the estimate of the pager
memory used. FossilOrigin-Name: 4b97f8640e9167cd355a24836fe74e4224cf12b9
Diffstat (limited to 'src')
-rw-r--r--src/pager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pager.c b/src/pager.c
index adab9ff5e..d5bbae145 100644
--- a/src/pager.c
+++ b/src/pager.c
@@ -5418,7 +5418,7 @@ int sqlite3PagerMemUsed(Pager *pPager){
+ 5*sizeof(void*);
return perPageSize*sqlite3PcachePagecount(pPager->pPCache)
+ sqlite3MallocSize(pPager)
- + (pPager->pTmpSpace ? pPager->pageSize : 0);
+ + pPager->pageSize;
}
/*