diff options
-rw-r--r-- | src/H5Distore.c | 5 | ||||
-rw-r--r-- | src/H5Fistore.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/H5Distore.c b/src/H5Distore.c index 890ea58..8c4d816 100644 --- a/src/H5Distore.c +++ b/src/H5Distore.c @@ -1072,7 +1072,10 @@ H5F_istore_preempt (H5F_t *f, H5F_rdcc_ent_t *ent) assert(ent->idx>=0 && ent->idx<rdcc->nslots); /* Flush */ - H5F_istore_flush_entry(f, ent, TRUE); + if (H5F_istore_flush_entry(f, ent, TRUE)<0) { + HRETURN_ERROR(H5E_IO, H5E_WRITEERROR, FAIL, + "cannot flush indexed storage buffer"); + } /* Unlink from list */ if (ent->prev) { diff --git a/src/H5Fistore.c b/src/H5Fistore.c index 890ea58..8c4d816 100644 --- a/src/H5Fistore.c +++ b/src/H5Fistore.c @@ -1072,7 +1072,10 @@ H5F_istore_preempt (H5F_t *f, H5F_rdcc_ent_t *ent) assert(ent->idx>=0 && ent->idx<rdcc->nslots); /* Flush */ - H5F_istore_flush_entry(f, ent, TRUE); + if (H5F_istore_flush_entry(f, ent, TRUE)<0) { + HRETURN_ERROR(H5E_IO, H5E_WRITEERROR, FAIL, + "cannot flush indexed storage buffer"); + } /* Unlink from list */ if (ent->prev) { |