diff options
author | Ramon Fernandez <ramon@mongodb.com> | 2017-10-12 07:15:30 -0400 |
---|---|---|
committer | Ramon Fernandez <ramon@mongodb.com> | 2017-10-12 07:15:30 -0400 |
commit | 96dfbfbb8cfc35640034b189ba58fef43751319e (patch) | |
tree | 0cee99a3dda7d150795449d3bb80f13d1db9c7fa /src/third_party/wiredtiger/src/conn | |
parent | 8205b768ca58b68b7aaf3b3b1c7a544f8d044d5a (diff) | |
download | mongo-96dfbfbb8cfc35640034b189ba58fef43751319e.tar.gz |
Import wiredtiger: 4b5ade6072d548fdebe3b376f94e0d672eea5359 from branch mongodb-3.6r3.6.0-rc0
ref: 0cd3d5bbd8..4b5ade6072
for: 3.5.14
WT-3644 Port to FreeBSD release 11.1
WT-3645 Build Failed: Lookaside file occupies 10MB of 11MB cache size
WT-3646 Only use lookaside when operations are blocked waiting for cache
WT-3649 Disable lookaside eviction during close
Diffstat (limited to 'src/third_party/wiredtiger/src/conn')
-rw-r--r-- | src/third_party/wiredtiger/src/conn/conn_api.c | 7 | ||||
-rw-r--r-- | src/third_party/wiredtiger/src/conn/conn_cache.c | 2 | ||||
-rw-r--r-- | src/third_party/wiredtiger/src/conn/conn_ckpt.c | 5 |
3 files changed, 9 insertions, 5 deletions
diff --git a/src/third_party/wiredtiger/src/conn/conn_api.c b/src/third_party/wiredtiger/src/conn/conn_api.c index 55251491129..4fcd1b8ede1 100644 --- a/src/third_party/wiredtiger/src/conn/conn_api.c +++ b/src/third_party/wiredtiger/src/conn/conn_api.c @@ -1084,6 +1084,13 @@ err: /* WT_TRET(wt_session->close(wt_session, config)); } + /* + * Disable lookaside eviction: it doesn't help us shut down and can + * lead to pages being marked dirty, causing spurious assertions to + * fire. + */ + F_SET(conn, WT_CONN_EVICTION_NO_LOOKASIDE); + /* Shut down transactions (wait for in-flight operations to complete. */ WT_TRET(__wt_txn_global_shutdown(session)); diff --git a/src/third_party/wiredtiger/src/conn/conn_cache.c b/src/third_party/wiredtiger/src/conn/conn_cache.c index 625350cf3e6..da5b6bfd55f 100644 --- a/src/third_party/wiredtiger/src/conn/conn_cache.c +++ b/src/third_party/wiredtiger/src/conn/conn_cache.c @@ -177,7 +177,7 @@ __wt_cache_create(WT_SESSION_IMPL *session, const char *cfg[]) * The lowest possible page read-generation has a special meaning, it * marks a page for forcible eviction; don't let it happen by accident. */ - cache->read_gen = WT_READGEN_START_VALUE; + cache->read_gen = cache->read_gen_oldest = WT_READGEN_START_VALUE; /* * The target size must be lower than the trigger size or we will never diff --git a/src/third_party/wiredtiger/src/conn/conn_ckpt.c b/src/third_party/wiredtiger/src/conn/conn_ckpt.c index d968d4e4b2b..a47524af2d7 100644 --- a/src/third_party/wiredtiger/src/conn/conn_ckpt.c +++ b/src/third_party/wiredtiger/src/conn/conn_ckpt.c @@ -161,11 +161,8 @@ __ckpt_server_start(WT_CONNECTION_IMPL *conn) * * Checkpoint does enough I/O it may be called upon to perform slow * operations for the block manager. - * - * The checkpoint thread reads the lookaside table for outdated records, - * it gets its own cursor for that purpose. */ - session_flags = WT_SESSION_CAN_WAIT | WT_SESSION_LOOKASIDE_CURSOR; + session_flags = WT_SESSION_CAN_WAIT; WT_RET(__wt_open_internal_session(conn, "checkpoint-server", true, session_flags, &conn->ckpt_session)); session = conn->ckpt_session; |