diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-08-16 20:12:05 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-08-16 20:12:05 (GMT) |
commit | 4cd9c205ec2a7f2d216b2542c631840f5a24ebe0 (patch) | |
tree | e251e3c283a834586dde09aaa24b380acb49c15f /src/H5D.c | |
parent | f759af2362adef2c871184259cdbf8326fbc72d6 (diff) | |
download | hdf5-4cd9c205ec2a7f2d216b2542c631840f5a24ebe0.zip hdf5-4cd9c205ec2a7f2d216b2542c631840f5a24ebe0.tar.gz hdf5-4cd9c205ec2a7f2d216b2542c631840f5a24ebe0.tar.bz2 |
[svn-r2475] Moved code to insert a new dataset into a group up a few blocks of code, to
get the metadata allocated in the file more tightly together.
Diffstat (limited to 'src/H5D.c')
-rw-r--r-- | src/H5D.c | 28 |
1 files changed, 23 insertions, 5 deletions
@@ -1082,11 +1082,22 @@ H5D_create(H5G_entry_t *loc, const char *name, const H5T_t *type, "unable to update modification time message"); } +#ifdef QAK +printf("%s: check 0.5\n",FUNC); +#endif /* QAK */ + /* Give the dataset a name */ + if (H5G_insert(loc, name, &(new_dset->ent)) < 0) { + HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, NULL, "unable to name dataset"); + } + /* * Initialize storage. We assume that external storage is already * initialized by the caller, or at least will be before I/O is * performed. */ +#ifdef QAK +printf("%s: check 1.0\n",FUNC); +#endif /* QAK */ if (0==efl->nused) { if (H5F_arr_create(f, &(new_dset->layout)) < 0) { HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, NULL, @@ -1096,6 +1107,9 @@ H5D_create(H5G_entry_t *loc, const char *name, const H5T_t *type, new_dset->layout.addr = HADDR_UNDEF; } +#ifdef QAK +printf("%s: check 2.0\n",FUNC); +#endif /* QAK */ /* Update layout message */ if (H5O_modify (&(new_dset->ent), H5O_LAYOUT, 0, H5O_FLAG_CONSTANT, &(new_dset->layout)) < 0) { @@ -1103,6 +1117,9 @@ H5D_create(H5G_entry_t *loc, const char *name, const H5T_t *type, "unable to update layout message"); } +#ifdef QAK +printf("%s: check 3.0\n",FUNC); +#endif /* QAK */ /* Update external storage message */ if (efl->nused>0) { size_t heap_size = H5HL_ALIGN (1); @@ -1132,17 +1149,18 @@ H5D_create(H5G_entry_t *loc, const char *name, const H5T_t *type, } } +#ifdef QAK +printf("%s: check 4.0\n",FUNC); +#endif /* QAK */ /* Initialize the raw data */ if (H5D_init_storage(new_dset, space)<0) { HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, NULL, "unable to initialize storage"); } - /* Give the dataset a name */ - if (H5G_insert(loc, name, &(new_dset->ent)) < 0) { - HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, NULL, "unable to name dataset"); - } - +#ifdef QAK +printf("%s: check 6.0\n",FUNC); +#endif /* QAK */ /* Success */ ret_value = new_dset; |