summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/btree/bt_curprev.c
diff options
context:
space:
mode:
authorLuke Pearson <luke.pearson@mongodb.com>2019-07-09 09:25:08 +1000
committerLuke Pearson <luke.pearson@mongodb.com>2019-07-09 09:28:21 +1000
commit740dbbec28c970befdfea5177957916882bffa2b (patch)
tree4efaf464c4200707a8da51804c05b6503a0f2220 /src/third_party/wiredtiger/src/btree/bt_curprev.c
parente5d7c73e7eb9f3bfe70925dd3154ca348b1ee285 (diff)
downloadmongo-740dbbec28c970befdfea5177957916882bffa2b.tar.gz
Import wiredtiger: 99e0760cc5f11440b21184874d8dd2ae5bde23d6 from branch mongodb-4.2
ref: b50d65e856..99e0760cc5 for: 4.3.1 WT-4792 Add stat to track pages queued for eviction after LRU sorting WT-4832 Change ordering on shutdown to close LSM and async threads earlier WT-4836 Lower scheduling frequency for endianness compatibility tests WT-4892 Improve statistics about forced eviction WT-4893 Fix a race between internal page child-page eviction checks and cursors in the tree WT-4898 Don't allow the eviction server to reconcile if it's busy WT-4918 LSM allocated mutexes leaked in readonly tests WT-4920 Add statistics tracking when eviction server is waiting for page transitions
Diffstat (limited to 'src/third_party/wiredtiger/src/btree/bt_curprev.c')
-rw-r--r--src/third_party/wiredtiger/src/btree/bt_curprev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/src/btree/bt_curprev.c b/src/third_party/wiredtiger/src/btree/bt_curprev.c
index 1b8df0008b9..5ac53cb2036 100644
--- a/src/third_party/wiredtiger/src/btree/bt_curprev.c
+++ b/src/third_party/wiredtiger/src/btree/bt_curprev.c
@@ -665,8 +665,10 @@ __wt_btcur_prev(WT_CURSOR_BTREE *cbt, bool truncating)
*/
if (page != NULL &&
(cbt->page_deleted_count > WT_BTREE_DELETE_THRESHOLD ||
- (newpage && cbt->page_deleted_count > 0)))
+ (newpage && cbt->page_deleted_count > 0))) {
__wt_page_evict_soon(session, cbt->ref);
+ WT_STAT_CONN_INCR(session, cache_eviction_force_delete);
+ }
cbt->page_deleted_count = 0;
if (F_ISSET(cbt, WT_CBT_READ_ONCE))