summaryrefslogtreecommitdiff
path: root/src/cursor
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2015-03-20 16:11:13 -0400
committerKeith Bostic <keith@wiredtiger.com>2015-03-20 16:11:13 -0400
commit207836fbdae42297037ba156ff207abef854730c (patch)
tree845bc964c641663338e377b6f122983a05aa9b67 /src/cursor
parent153619ee1dfd04c654c0075ad2daa6d3aa57dcea (diff)
downloadmongo-207836fbdae42297037ba156ff207abef854730c.tar.gz
Remove call to __wt_filename from __backup_file_create, it's no longer
needed.
Diffstat (limited to 'src/cursor')
-rw-r--r--src/cursor/cur_backup.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/cursor/cur_backup.c b/src/cursor/cur_backup.c
index 0d8c1d215db..009fc33e077 100644
--- a/src/cursor/cur_backup.c
+++ b/src/cursor/cur_backup.c
@@ -455,18 +455,9 @@ static int
__backup_file_create(
WT_SESSION_IMPL *session, WT_CURSOR_BACKUP *cb, int incremental)
{
- WT_DECL_RET;
- char *path;
-
- /* Open the hot backup file. */
- if (incremental)
- WT_RET(__wt_filename(session, WT_INCREMENTAL_BACKUP, &path));
- else
- WT_RET(__wt_filename(session, WT_METADATA_BACKUP, &path));
- ret = __wt_fopen(session, path, "w", 0, &cb->bfp);
-
- __wt_free(session, path);
- return (ret);
+ return (__wt_fopen(session,
+ incremental ? WT_INCREMENTAL_BACKUP : WT_METADATA_BACKUP,
+ "w", 0, &cb->bfp));
}
/*