diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-04-02 13:06:19 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-04-02 13:06:19 -0400 |
commit | d3dacbffd2a87ea79ec05fa569bdd5d34f90254c (patch) | |
tree | 7c7c324ccee91fb31c7aca145ab230aff2e5058e /src/cursor/cur_backup.c | |
parent | eee8167eb19ca4e9b779b0364bbaef1b920150f8 (diff) | |
download | mongo-d3dacbffd2a87ea79ec05fa569bdd5d34f90254c.tar.gz |
Make --with-spinlock=pthread_logging option compile again.
Remove the WT_SESSION_IMPL argument to the fprintf, vfprintf, fflush and
fclose functions, there are places we want to use it that don't have
session handles, and it's not currently needed. Clean up error handling
in the vfprintf function.
Diffstat (limited to 'src/cursor/cur_backup.c')
-rw-r--r-- | src/cursor/cur_backup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cursor/cur_backup.c b/src/cursor/cur_backup.c index 5b47c2c1a73..a201477abe3 100644 --- a/src/cursor/cur_backup.c +++ b/src/cursor/cur_backup.c @@ -248,7 +248,7 @@ __backup_start( * Close any hot backup file. * We're about to open the incremental backup file. */ - WT_TRET(__wt_fclose(session, &cb->bfp, WT_FHANDLE_WRITE)); + WT_TRET(__wt_fclose(&cb->bfp, WT_FHANDLE_WRITE)); WT_ERR(__backup_file_create(session, cb, log_only)); WT_ERR(__backup_list_append( session, cb, WT_INCREMENTAL_BACKUP)); @@ -266,7 +266,7 @@ __backup_start( } err: /* Close the hot backup file. */ - WT_TRET(__wt_fclose(session, &cb->bfp, WT_FHANDLE_WRITE)); + WT_TRET(__wt_fclose(&cb->bfp, WT_FHANDLE_WRITE)); if (ret != 0) { WT_TRET(__backup_cleanup_handles(session, cb)); WT_TRET(__backup_stop(session)); @@ -347,7 +347,7 @@ __backup_all(WT_SESSION_IMPL *session, WT_CURSOR_BACKUP *cb) while ((ret = cursor->next(cursor)) == 0) { WT_ERR(cursor->get_key(cursor, &key)); WT_ERR(cursor->get_value(cursor, &value)); - WT_ERR(__wt_fprintf(session, cb->bfp, "%s\n%s\n", key, value)); + WT_ERR(__wt_fprintf(cb->bfp, "%s\n%s\n", key, value)); /* * While reading the metadata file, check there are no "sources" @@ -495,7 +495,7 @@ __wt_backup_list_uri_append( /* Add the metadata entry to the backup file. */ WT_RET(__wt_metadata_search(session, name, &value)); - WT_RET(__wt_fprintf(session, cb->bfp, "%s\n%s\n", name, value)); + WT_RET(__wt_fprintf(cb->bfp, "%s\n%s\n", name, value)); __wt_free(session, value); /* Add file type objects to the list of files to be copied. */ |