summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gorrod <alexg@wiredtiger.com>2012-12-21 18:00:36 +1100
committerAlex Gorrod <alexg@wiredtiger.com>2012-12-21 18:00:36 +1100
commit76ef021cea118bbdd10156029613948c78ea8452 (patch)
treec61640488ab754bf9e6f72327991c7ed91437435
parentdae5f9c05f61985f44a125cab00a9558bd5dae9f (diff)
downloadmongo-76ef021cea118bbdd10156029613948c78ea8452.tar.gz
Add a comment.
-rw-r--r--src/include/cache.i4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/cache.i b/src/include/cache.i
index ebc37997b4f..c54dd998783 100644
--- a/src/include/cache.i
+++ b/src/include/cache.i
@@ -48,6 +48,10 @@ __wt_eviction_check(WT_SESSION_IMPL *session, int *read_lockoutp, int wake)
static inline int
__wt_eviction_page_force(WT_BTREE *btree, WT_PAGE *page)
{
+ /*
+ * The number 60 is arbitrary here. It happens to be about 1MB
+ * if the btree is using 16KB pages.
+ */
return (!WT_PAGE_IS_ROOT(page) && __wt_page_is_modified(page) &&
(page->memory_footprint > 60 * btree->maxleafpage));
}