diff options
author | Alex Gorrod <alexander.gorrod@mongodb.com> | 2016-08-26 03:40:27 +1000 |
---|---|---|
committer | sueloverso <sue@mongodb.com> | 2016-08-25 13:40:27 -0400 |
commit | a0757fee1e46083c0097fdc8f17a1ea65225aa72 (patch) | |
tree | 5e4d087e8ad0c34a0df4e2c2c412199c6a07df8b /dist | |
parent | e792859174eca5e6e427bfa50dc1f92125ad8bb1 (diff) | |
download | mongo-a0757fee1e46083c0097fdc8f17a1ea65225aa72.tar.gz |
WT-2846 Fix bugs related to reconfiguring eviction settings. (#2973)
Fix bugs related to reconfiguring eviction settings.
The code to support reconfiguring eviction worker threads had
several bugs. Implemented an abstracted utility thread group API
and switch eviction workers over to using the new abstraction.
* Remove unused function from new thread group API.
* Commit auto-generated files.
* Be more careful cleaning up on error in thread group code.
* Fix uninitialized variable.
* Ensure thread group structures are cleared after destruction.
This is necessary since the structure is re-used for eviction workers
when recovery is run.
* Remove util and worker as notions from thread group as per review feedback.
Implement other feedback review as well.
* Fix a bug where application threads could attempt to help with eviction
before the server is setup.
Happens if using a shared cache so the cache size starts out at 0.
* Remove _util_ prefix from thread group functions.
* Add session name to thread group. Fix some comments and whitespace.
* Restore error return path.
Diffstat (limited to 'dist')
-rw-r--r-- | dist/api_data.py | 1 | ||||
-rw-r--r-- | dist/filelist | 1 | ||||
-rw-r--r-- | dist/flags.py | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/dist/api_data.py b/dist/api_data.py index 3eb6d6c5f26..e732e42d36d 100644 --- a/dist/api_data.py +++ b/dist/api_data.py @@ -519,6 +519,7 @@ connection_runtime_config = [ 'shared_cache', 'split', 'temporary', + 'thread_group', 'transaction', 'verify', 'version', diff --git a/dist/filelist b/dist/filelist index 0ef80ebd5f4..eabca36fe72 100644 --- a/dist/filelist +++ b/dist/filelist @@ -184,6 +184,7 @@ src/support/pow.c src/support/rand.c src/support/scratch.c src/support/stat.c +src/support/thread_group.c src/txn/txn.c src/txn/txn_ckpt.c src/txn/txn_ext.c diff --git a/dist/flags.py b/dist/flags.py index 8091283a8c0..93b6e0cbbf4 100644 --- a/dist/flags.py +++ b/dist/flags.py @@ -80,6 +80,7 @@ flags = { 'VERB_SHARED_CACHE', 'VERB_SPLIT', 'VERB_TEMPORARY', + 'VERB_THREAD_GROUP', 'VERB_TRANSACTION', 'VERB_VERIFY', 'VERB_VERSION', |