diff options
author | Luke Chen <luke.chen@mongodb.com> | 2020-08-07 14:35:38 +1000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-07 04:44:34 +0000 |
commit | 7a351100d3f8e52da17dd440101d99e86aedb772 (patch) | |
tree | 0c8e4294300919fd86c9365e5ea70d4283600f13 /src/third_party/wiredtiger/src/conn/conn_open.c | |
parent | e199a343576be60a13154cf771e7a4d623e1d6c0 (diff) | |
download | mongo-7a351100d3f8e52da17dd440101d99e86aedb772.tar.gz |
Import wiredtiger: 6563ee4aa0e45cd72cc68563dacb8cb5fc15c630 from branch mongodb-4.0
ref: cb9f737fc6..6563ee4aa0
for: 4.0.20
WT-5242 Minimize checkpoints pinned during backup
WT-6118 Fix missing checkpoint in backup
WT-6141 Disable checkpoint deletion during backup
Diffstat (limited to 'src/third_party/wiredtiger/src/conn/conn_open.c')
-rw-r--r-- | src/third_party/wiredtiger/src/conn/conn_open.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/conn/conn_open.c b/src/third_party/wiredtiger/src/conn/conn_open.c index 9656a3d0167..a2c39fbeed5 100644 --- a/src/third_party/wiredtiger/src/conn/conn_open.c +++ b/src/third_party/wiredtiger/src/conn/conn_open.c @@ -16,6 +16,7 @@ int __wt_connection_open(WT_CONNECTION_IMPL *conn, const char *cfg[]) { WT_SESSION_IMPL *session; + time_t most_recent; /* Default session. */ session = conn->default_session; @@ -39,6 +40,9 @@ __wt_connection_open(WT_CONNECTION_IMPL *conn, const char *cfg[]) */ conn->default_session = session; + __wt_seconds(session, &most_recent); + conn->ckpt_most_recent = (uint64_t)most_recent; + /* * Publish: there must be a barrier to ensure the connection structure fields are set before * other threads read from the pointer. |