diff options
author | Chenhao Qu <chenhao.qu@mongodb.com> | 2020-11-04 21:59:17 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-04 22:42:45 +0000 |
commit | 359ebf7e91cacf9c80b7cd5f13d126fa85494ac1 (patch) | |
tree | 4d5fc8def5fc4f77d3fdbd7e5ced1641610f4ba1 /src/third_party/wiredtiger/examples | |
parent | bff7491483d50c11ef9f76382affa5eaed8d1b18 (diff) | |
download | mongo-359ebf7e91cacf9c80b7cd5f13d126fa85494ac1.tar.gz |
Import wiredtiger: b01325d9e9ae56e00c790c6ac53ef06a9493e079 from branch mongodb-5.0
ref: 5fb9ea60da..b01325d9e9
for: 4.9.0
WT-6722 Review function names in history store module
WT-6828 Fix doc link in README
WT-6830 Encode bytes before concatenating with string
WT-6835 Add API to consolidate incremental backup information
WT-6842 Add example showing using src_id only
WT-6844 Make force stop durable
Diffstat (limited to 'src/third_party/wiredtiger/examples')
-rw-r--r-- | src/third_party/wiredtiger/examples/c/ex_backup_block.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/examples/c/ex_backup_block.c b/src/third_party/wiredtiger/examples/c/ex_backup_block.c index 96207444dd7..01d0431fd10 100644 --- a/src/third_party/wiredtiger/examples/c/ex_backup_block.c +++ b/src/third_party/wiredtiger/examples/c/ex_backup_block.c @@ -342,7 +342,8 @@ take_incr_backup(WT_SESSION *session, int i) /*! [Query existing IDs] */ /* Open the backup data source for incremental backup. */ - (void)snprintf(buf, sizeof(buf), "incremental=(src_id=\"ID%d\",this_id=\"ID%d\")", i - 1, i); + (void)snprintf(buf, sizeof(buf), "incremental=(src_id=\"ID%d\",this_id=\"ID%d\"%s)", i - 1, i, + i % 2 == 0 ? "" : ",consolidate=true"); error_check(session->open_cursor(session, "backup:", NULL, buf, &backup_cur)); rfd = wfd = -1; count = 0; |