diff options
-rw-r--r-- | src/H5D.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -2918,7 +2918,7 @@ H5D_extend (H5D_t *dataset, const hsize_t *size, hid_t dxpl_id) HGOTO_ERROR(H5E_DATASET, H5E_WRITEERROR, FAIL, "unable to update cached chunk indices") /* Allocate space for the new parts of the dataset, if appropriate */ - if(dataset->shared->alloc_time == H5D_ALLOC_TIME_EARLY || IS_H5FD_MPI(dataset->oloc.file)) + if(dataset->shared->alloc_time == H5D_ALLOC_TIME_EARLY) if(H5D_alloc_storage(dataset->oloc.file, dxpl_id, dataset, H5D_ALLOC_EXTEND, TRUE, FALSE) < 0) HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to initialize dataset with fill value") } /* end if */ @@ -3092,13 +3092,11 @@ H5D_alloc_storage (H5F_t *f, hid_t dxpl_id, H5D_t *dset/*in,out*/, H5D_time_allo init_space=1; } /* end if */ - /* If (space allocation is set to 'early' or file is opened - * by parallel mode) and we are extending the dataset, - * indicate that space should be allocated, so the - * B-tree gets expanded. -QAK + /* If space allocation is set to 'early' and we are extending + * the dataset, indicate that space should be allocated, so the + * B-tree gets expanded. -QAK */ - if((dset->shared->alloc_time == H5D_ALLOC_TIME_EARLY || - IS_H5FD_MPI(dset->oloc.file)) && + if(dset->shared->alloc_time == H5D_ALLOC_TIME_EARLY && time_alloc == H5D_ALLOC_EXTEND) { init_space=1; |