summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Gorrod <alexg@wiredtiger.com>2013-02-16 08:04:52 +1100
committerAlex Gorrod <alexg@wiredtiger.com>2013-02-16 08:04:52 +1100
commitbc27250c15cfdd31d9cd01430a592a437935496e (patch)
tree860ffdfe1a09769fd1f37f0014f4f4a9b0b88091 /test
parente3bb7e72f918bd6655cd7137d65816b2afdf06f9 (diff)
downloadmongo-bc27250c15cfdd31d9cd01430a592a437935496e.tar.gz
Fix shared cache so that reserve size is always initialized properly.
Also change how we detect if shared cache is used. It used to rely on a name, now it will be used if the shared_cache configuration option was included by the user.
Diffstat (limited to 'test')
-rw-r--r--test/suite/test_shared_cache.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/suite/test_shared_cache.py b/test/suite/test_shared_cache.py
index cb1edc46ded..7bf54432e3a 100644
--- a/test/suite/test_shared_cache.py
+++ b/test/suite/test_shared_cache.py
@@ -209,5 +209,15 @@ class test_shared_cache(wttest.WiredTigerTestCase):
connection.reconfigure("shared_cache=(size=300M)")
self.closeConnections()
+ # Test default config values
+ def test_shared_cache11(self):
+ nops = 1000
+ self.openConnections(['WT_TEST1', 'WT_TEST2'], pool_opts=',shared_cache=()')
+
+ for sess in self.sessions:
+ sess.create(self.uri, "key_format=S,value_format=S")
+ self.add_records(sess, 0, nops)
+ self.closeConnections()
+
if __name__ == '__main__':
wttest.run()