mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-12 15:04:59 +08:00
[svn-r25487] store all members of the driver info in the file structs since they
will be needed if H5Pget_create_plist is called. tested jam. minor change.
This commit is contained in:
parent
2173d36d66
commit
3f701fda65
@ -598,6 +598,11 @@ H5FD_log_open(const char *name, unsigned flags, hid_t fapl_id, haddr_t maxaddr)
|
||||
|
||||
/* Get the flags for logging */
|
||||
file->fa.flags = fa->flags;
|
||||
if(fa->logfile)
|
||||
file->fa.logfile = HDstrdup(fa->logfile);
|
||||
else
|
||||
file->fa.logfile = NULL;
|
||||
file->fa.buf_size = fa->buf_size;
|
||||
|
||||
/* Check if we are doing any logging at all */
|
||||
if(file->fa.flags != 0) {
|
||||
@ -798,6 +803,11 @@ H5FD_log_close(H5FD_t *_file)
|
||||
HDfclose(file->logfp);
|
||||
} /* end if */
|
||||
|
||||
if(file->fa.logfile) {
|
||||
HDfree(file->fa.logfile);
|
||||
file->fa.logfile = NULL;
|
||||
}
|
||||
|
||||
/* Release the file info */
|
||||
file = H5FL_FREE(H5FD_log_t, file);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user