From 564b68cecc53b4fa4a48b3633643897fc62cab5f Mon Sep 17 00:00:00 2001 From: Robb Matzke Date: Tue, 7 Nov 2000 11:00:46 -0500 Subject: [svn-r2807] ./hdf5/src/H5Fistore.c * 2000-11-07 Robb Matzke (H5F_istore_preempt) Returns error if call to H5F_istore_flush() failed. --- src/H5Distore.c | 5 ++++- 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->idxnslots); /* 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->idxnslots); /* 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) { -- cgit v0.12