MB-24055: change defaultNumLocks from 193 to 47 (logical no-op). 89/77889/3
authorDave Rigby <daver@couchbase.com>
Tue, 9 May 2017 13:03:42 +0000 (14:03 +0100)
committerDave Rigby <daver@couchbase.com>
Thu, 11 May 2017 15:41:02 +0000 (15:41 +0000)
commit8b4ab1ae2c52119c88205e835b9890806667e9c6
treeb51a01d308a3d7436a7bfbbd0c0411c58861ffa9
parentd3a497a2350132610b212e4e231b232c1a3aa7c3
MB-24055: change defaultNumLocks from 193 to 47 (logical no-op).

Change the value of HashTable::defaultNumLocks from 193 to 47. Note
this is a no-op in a ns_server-controlled configutation as it already
explicilty sets the number of ht_locks to 47; therefore the only time
193 is used is in unit tests.

The reason for changing to 47 is to simplify testing - (1) we should
ideally test in a configuration as close to the "full" system, and (2)
we actually need to reduce the number of locks to <64 so we can run
successfully under ThreadSanitizer.

Change-Id: I1bcecc86cc90fbac215b8ee231179bee5d8cca32
Reviewed-on: http://review.couchbase.org/77889
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: James Harrison <james.harrison@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
benchmarks/access_scanner_bench.cc
src/hash_table.cc
tests/module_tests/ep_unit_tests_main.cc