summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/include/connection.h
diff options
context:
space:
mode:
authorLuke Chen <luke.chen@mongodb.com>2020-05-06 15:45:01 +1000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-06 06:00:50 +0000
commitd2274bb6e1f8b21d73121a2fcb20b6628f652bbe (patch)
tree72c771934dab7adff1bbffdcb1af1ac6e1c36a0d /src/third_party/wiredtiger/src/include/connection.h
parente500238a9ea3d5498ebffeb74a1aceac42eb2c1f (diff)
downloadmongo-d2274bb6e1f8b21d73121a2fcb20b6628f652bbe.tar.gz
Import wiredtiger: 18dfb9e58e39927696affcd8e362364e23e1aa59 from branch mongodb-4.4r4.4.0-rc4
ref: a707df12a2..18dfb9e58e for: 4.4.0-rc4 WT-5242 Minimize checkpoints pinned during backup WT-5470 Reduce copies and allocations in read path WT-5673 Prepare support with durable history: modify verify and salvage as needed WT-5677 Prepare support with durable history: add test/format stress tests WT-5710 Review WT_PANIC usage WT-5716 Create the history store file at the same time as creating the metadata file in wiredtiger open WT-5839 Ignore non-globally visible tombstones for both data store and hs store in hs verification WT-5841 Return WT_TRY_SALVAGE when the history file is removed or truncated WT-5928 Cleanup stale FIXMEs from durable history WT-5977 WT_SESSION_NO_RECONCILE flag set by history cursor prevents eviction WT-5984 Allow prepared updates to be evicted in durable history WT-6009 Prepare support with durable history: add statistic for prepared updates evicted WT-6032 Turn on mongodb-4.4 branch upgrade/downgrade testing WT-6051 Fix reconstructing full value from modifies for string format WT-6068 Re-enable tests temporarily disabled during durable history development WT-6069 Remove WT_UPDATE_RESTORED_FROM_DISK flag WT-6070 Coverity : Copy paste error WT-6071 Coverity : Change format specifier WT-6086 Move time windows and aggregated time windows into structures WT-6087 Add a C2S(cursor) macro to simplify translation from a cursor to a session WT-6095 Verify on-disk page only for row store as part of rollback to stable WT-6109 Cleanup usage of cursor->session WT-6110 Cleanup cast from cbt to cursor WT-6120 Remove use-after-free in __verify_history_store_id WT-6130 Disable test_random_abort
Diffstat (limited to 'src/third_party/wiredtiger/src/include/connection.h')
-rw-r--r--src/third_party/wiredtiger/src/include/connection.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/third_party/wiredtiger/src/include/connection.h b/src/third_party/wiredtiger/src/include/connection.h
index f6bd37c5124..547feaa54a3 100644
--- a/src/third_party/wiredtiger/src/include/connection.h
+++ b/src/third_party/wiredtiger/src/include/connection.h
@@ -150,10 +150,10 @@ struct __wt_named_extractor {
* WT_CONN_HOTBACKUP_START --
* Macro to set connection data appropriately for when we commence hot backup.
*/
-#define WT_CONN_HOTBACKUP_START(conn) \
- do { \
- (conn)->hot_backup = true; \
- (conn)->hot_backup_list = NULL; \
+#define WT_CONN_HOTBACKUP_START(conn) \
+ do { \
+ (conn)->hot_backup_start = (conn)->ckpt_finish_secs; \
+ (conn)->hot_backup_list = NULL; \
} while (0)
/*
@@ -269,13 +269,14 @@ struct __wt_connection_impl {
WT_TXN_GLOBAL txn_global; /* Global transaction state */
WT_RWLOCK hot_backup_lock; /* Hot backup serialization */
- bool hot_backup; /* Hot backup in progress */
+ uint64_t hot_backup_start; /* Clock value of most recent checkpoint needed by hot backup */
char **hot_backup_list; /* Hot backup file list */
WT_SESSION_IMPL *ckpt_session; /* Checkpoint thread session */
wt_thread_t ckpt_tid; /* Checkpoint thread */
bool ckpt_tid_set; /* Checkpoint thread set */
WT_CONDVAR *ckpt_cond; /* Checkpoint wait mutex */
+ uint64_t ckpt_finish_secs; /* Clock value of last completed checkpoint */
#define WT_CKPT_LOGSIZE(conn) ((conn)->ckpt_logsize != 0)
wt_off_t ckpt_logsize; /* Checkpoint log size period */
bool ckpt_signalled; /* Checkpoint signalled */