summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/examples/c/ex_backup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/examples/c/ex_backup.c')
-rw-r--r--src/third_party/wiredtiger/examples/c/ex_backup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/examples/c/ex_backup.c b/src/third_party/wiredtiger/examples/c/ex_backup.c
index d9f410461ee..30d8ee4dd88 100644
--- a/src/third_party/wiredtiger/examples/c/ex_backup.c
+++ b/src/third_party/wiredtiger/examples/c/ex_backup.c
@@ -217,7 +217,9 @@ take_incr_backup(WT_SESSION *session, int i)
* With an incremental cursor, we want to truncate on the backup cursor to archive the logs.
* Only do this if the copy process was entirely successful.
*/
+ /*! [Truncate a backup cursor] */
error_check(session->truncate(session, "log:", cursor, NULL, NULL));
+ /*! [Truncate a backup cursor] */
error_check(cursor->close(cursor));
}