summaryrefslogtreecommitdiff
path: root/src/include/cache.h
diff options
context:
space:
mode:
authorAlex Gorrod <alexander.gorrod@mongodb.com>2017-04-14 03:25:28 +1000
committerAlex Gorrod <alexander.gorrod@mongodb.com>2017-04-14 03:25:28 +1000
commitf5c08e2b5f02805b062888d45c9eca19af175f7e (patch)
tree0b43098fab6f6059c04c89e9b85337d5f625c5f2 /src/include/cache.h
parentd48181f6f4db08761ed7b80b0332908b272ad0d0 (diff)
parentcb16839cfbdf338af95bed43ca40979ae6e32f54 (diff)
Merge branch 'mongodb-3.4' into mongodb-3.2mongodb-3.2.13
Diffstat (limited to 'src/include/cache.h')
-rw-r--r--src/include/cache.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/include/cache.h b/src/include/cache.h
index 70f6169200d..04920c3585a 100644
--- a/src/include/cache.h
+++ b/src/include/cache.h
@@ -18,6 +18,15 @@
#define WT_EVICT_MAX_TREES 1000 /* Maximum walk points */
+/* Ways to position when starting an eviction walk. */
+typedef enum {
+ WT_EVICT_WALK_NEXT,
+ WT_EVICT_WALK_PREV,
+ WT_EVICT_WALK_RAND_NEXT,
+ WT_EVICT_WALK_RAND_PREV
+} WT_EVICT_WALK_START;
+#define WT_EVICT_WALK_START_NUM (WT_EVICT_WALK_RAND_PREV + 1)
+
/*
* WT_EVICT_ENTRY --
* Encapsulation of an eviction candidate.
@@ -83,7 +92,7 @@ struct __wt_cache {
uint64_t worker_evicts; /* Pages evicted by worker threads */
uint64_t evict_max_page_size; /* Largest page seen at eviction */
-#ifdef HAVE_DIAGNOSTIC
+#if defined(HAVE_DIAGNOSTIC) || defined(HAVE_VERBOSE)
struct timespec stuck_ts; /* Stuck timestamp */
#endif