diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2014-08-01 13:15:58 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2014-08-01 13:15:58 +1000 |
commit | aef6a8a0d7a55a9688a3ea8e5fede1f94e571daf (patch) | |
tree | c3e3f3a2ab1d359fb72e69427917883f91ae2441 /src/btree/bt_evict.c | |
parent | 83914fac1a8b89a4a94f7711d82ec5f04d7d1f70 (diff) | |
download | mongo-aef6a8a0d7a55a9688a3ea8e5fede1f94e571daf.tar.gz |
Mark some internal sessions as not allowed to open data handles. Use this to ensure that we can safely keep some sessions open after all data handles are closed. Switch LSM to use the new __wt_open_internal_session call.
Diffstat (limited to 'src/btree/bt_evict.c')
-rw-r--r-- | src/btree/bt_evict.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/btree/bt_evict.c b/src/btree/bt_evict.c index 953b9c86a1f..1637b447c9a 100644 --- a/src/btree/bt_evict.c +++ b/src/btree/bt_evict.c @@ -239,7 +239,7 @@ __wt_evict_create(WT_CONNECTION_IMPL *conn) F_SET(conn, WT_CONN_EVICTION_RUN); WT_RET(__wt_open_internal_session( - conn, 1, "eviction-server", &session)); + conn, "eviction-server", 0, 0, &session)); conn->evict_session = session; WT_RET(__wt_thread_create( @@ -302,7 +302,7 @@ __evict_worker(void *arg) */ session = conn->default_session; WT_ERR(__wt_open_internal_session( - conn, 1, "eviction-worker", &session)); + conn, "eviction-worker", 0, 0, &session)); while (F_ISSET(conn, WT_CONN_EVICTION_RUN)) { /* Don't spin in a busy loop if there is no work to do */ |