diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2014-09-11 11:47:20 +1000 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2014-09-11 11:47:20 +1000 |
commit | ba56917bcedaba6fdc3d697ce740fc5654480f26 (patch) | |
tree | c2a67f1dcfe555df13d8a9b88be38b6225435afd /src/conn/conn_handle.c | |
parent | cf8454b55bfdb177a53660297ca2be511a29d7c1 (diff) | |
download | mongo-ba56917bcedaba6fdc3d697ce740fc5654480f26.tar.gz |
Add a new lock to serialize reconfigure.
Don't overload the API lock, since reconfigure can acquire the api lock
while doing a reconfigure.
Diffstat (limited to 'src/conn/conn_handle.c')
-rw-r--r-- | src/conn/conn_handle.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/conn/conn_handle.c b/src/conn/conn_handle.c index 03c22b04e30..8deae14ce0c 100644 --- a/src/conn/conn_handle.c +++ b/src/conn/conn_handle.c @@ -44,6 +44,7 @@ __wt_connection_init(WT_CONNECTION_IMPL *conn) WT_RET(__wt_spin_init(session, &conn->checkpoint_lock, "checkpoint")); WT_RET(__wt_spin_init(session, &conn->dhandle_lock, "data handle")); WT_RET(__wt_spin_init(session, &conn->fh_lock, "file list")); + WT_RET(__wt_spin_init(session, &conn->reconfig_lock, "reconfigure")); WT_RET(__wt_spin_init(session, &conn->hot_backup_lock, "hot backup")); WT_RET(__wt_spin_init(session, &conn->schema_lock, "schema")); WT_RET(__wt_calloc_def(session, WT_PAGE_LOCKS(conn), &conn->page_lock)); |