[svn-r11490] Purpose:
Bug fix
Description:
Fix "double root open" bug and apply same fix to datasets & named datatypes.
Also fix bug in symbol table entry lookup code that would "transfer" an
object from one file handle to another file handle when the two file handles
were opened on the same actual file.
Platforms tested:
FreeBSD 4.11 (sleipnir)
Too minor to require h5committest
This commit is contained in:
@@ -242,6 +242,8 @@ H5T_commit(H5G_entry_t *loc, const char *name, H5T_t *type, hid_t dxpl_id,
|
||||
type->shared->fo_count=1;
|
||||
|
||||
/* Add datatype to the list of open objects in the file */
|
||||
if(H5FO_top_incr(type->ent.file, type->ent.header)<0)
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINC, NULL, "can't incr object ref. count")
|
||||
if(H5FO_insert(type->ent.file, type->ent.header, type->shared)<0)
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINSERT, FAIL, "can't insert datatype into list of open objects")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user