Skip to content

Commit

Permalink
WT-2557 Need to truncate logs before closing backup cursor.
Browse files Browse the repository at this point in the history
  • Loading branch information
sueloverso committed Apr 19, 2016
1 parent eb8080b commit e607ca1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/format/backup.c
Expand Up @@ -156,14 +156,14 @@ backup(void *arg)
if (ret != WT_NOTFOUND)
testutil_die(ret, "backup-cursor");

testutil_check(backup_cursor->close(backup_cursor));
testutil_check(pthread_rwlock_unlock(&g.backup_lock));

/* After an incremental backup, truncate the log files. */
if (incremental)
testutil_check(session->truncate(
session, "log:", backup_cursor, NULL, NULL));

testutil_check(backup_cursor->close(backup_cursor));
testutil_check(pthread_rwlock_unlock(&g.backup_lock));

/*
* If automatic log archival isn't configured, optionally do
* incremental backups after each full backup. If we're not
Expand Down

0 comments on commit e607ca1

Please sign in to comment.