summaryrefslogtreecommitdiff
path: root/src/support/rand.c
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2017-07-10 23:33:31 -0400
committerAlex Gorrod <alexander.gorrod@mongodb.com>2017-09-07 08:52:53 +1000
commit31af5d70a87cf1d99c7275bc8bc01d29e2cb0d2a (patch)
treeea27c47def1002f9d85e516fa8d5caf16d8695c9 /src/support/rand.c
parent3579adf6c8b96d26898af9fe3cc5eb9677f75632 (diff)
downloadmongodb-3.4.9.tar.gz
WT-3329 Visit trees using a tiny fraction of cache. (#3442)mongodb-3.4.9
For workloads where no tree takes up a large enough fraction of cache, we were using a randomized approach to deciding when eviction should visit trees. That led to slow performance for workloads with uniform updates over thousands of trees. (cherry picked from commit 2f1ec98512010f6c92bf27a41180e3c8704b54c8) Signed-off-by: Alex Gorrod <alexander.gorrod@mongodb.com>
Diffstat (limited to 'src/support/rand.c')
-rw-r--r--src/support/rand.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/support/rand.c b/src/support/rand.c
index 4fae43edc8e..a5b229b9abc 100644
--- a/src/support/rand.c
+++ b/src/support/rand.c
@@ -120,15 +120,3 @@ __wt_random(WT_RAND_STATE volatile * rnd_state)
return ((z << 16) + (w & 65535));
}
-
-/*
- * __wt_random64 --
- * Return a 64-bit pseudo-random number.
- */
-uint64_t
-__wt_random64(WT_RAND_STATE volatile * rnd_state)
- WT_GCC_FUNC_ATTRIBUTE((visibility("default")))
-{
- return (((uint64_t)__wt_random(rnd_state) << 32) +
- __wt_random(rnd_state));
-}