[svn-r17177] In H5Odtype.c, the decoding function used to mark the datatype as on disk (see bug
#1585). I changed it to undefined and let the caller functions decide the location of the datatype. For H5Tdecode, it should mark the datatype as in memory. For other callers like H5Dopen or H5Aopen, they should makr it as on disk. Tested it on jam, smirom, linew.
This commit is contained in:
@@ -741,6 +741,10 @@ H5T_open(const H5G_loc_t *loc, hid_t dxpl_id)
|
||||
/* Point to shared datatype info */
|
||||
dt->shared = shared_fo;
|
||||
|
||||
/* Mark any datatypes as being in memory now */
|
||||
if(H5T_set_loc(dt, NULL, H5T_LOC_MEMORY) < 0)
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, NULL, "invalid datatype location")
|
||||
|
||||
/* Increment ref. count on shared info */
|
||||
shared_fo->fo_count++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user