diff options
author | drh <drh@noemail.net> | 2019-06-12 22:46:04 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-06-12 22:46:04 +0000 |
commit | 0ce974d122875c6e9ac3017660cc7a3746d276af (patch) | |
tree | 92ba3565c3da74254eb0e320ac27b3ed83d65eb3 /src/pcache.c | |
parent | 13d04020775b10b252029455d2b8dcfcf49a47e4 (diff) | |
download | sqlite-0ce974d122875c6e9ac3017660cc7a3746d276af.tar.gz sqlite-0ce974d122875c6e9ac3017660cc7a3746d276af.zip |
Adjust requirements marks and add new requirements tests.
FossilOrigin-Name: ebb81dad1f43dac4636cd44d4055d1d4b198c675f73e23c5a2d8d992ae27fe1f
Diffstat (limited to 'src/pcache.c')
-rw-r--r-- | src/pcache.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pcache.c b/src/pcache.c index 8311049c5..9125d5de3 100644 --- a/src/pcache.c +++ b/src/pcache.c @@ -243,9 +243,10 @@ static int numberOfCachePages(PCache *p){ ** suggested cache size is set to N. */ return p->szCache; }else{ - /* IMPLEMENTATION-OF: R-61436-13639 If the argument N is negative, then - ** the number of cache pages is adjusted to use approximately abs(N*1024) - ** bytes of memory. */ + /* IMPLEMANTATION-OF: R-59858-46238 If the argument N is negative, then the + ** number of cache pages is adjusted to be a number of pages that would + ** use approximately abs(N*1024) bytes of memory based on the current + ** page size. */ return (int)((-1024*(i64)p->szCache)/(p->szPage+p->szExtra)); } } |