summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/H5Distore.c3
-rw-r--r--src/H5Fistore.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/H5Distore.c b/src/H5Distore.c
index 886529d..ed5d351 100644
--- a/src/H5Distore.c
+++ b/src/H5Distore.c
@@ -1276,10 +1276,11 @@ H5F_istore_prune (H5F_t *f, size_t size)
}
if (cur) {
- if (H5F_istore_preempt(f, cur)<0) nerrors++;
for (j=0; j<nmeth; j++) {
if (p[j]==cur) p[j] = NULL;
+ if (n[j]==cur) n[j] = cur->next;
}
+ if (H5F_istore_preempt(f, cur)<0) nerrors++;
}
}
diff --git a/src/H5Fistore.c b/src/H5Fistore.c
index 886529d..ed5d351 100644
--- a/src/H5Fistore.c
+++ b/src/H5Fistore.c
@@ -1276,10 +1276,11 @@ H5F_istore_prune (H5F_t *f, size_t size)
}
if (cur) {
- if (H5F_istore_preempt(f, cur)<0) nerrors++;
for (j=0; j<nmeth; j++) {
if (p[j]==cur) p[j] = NULL;
+ if (n[j]==cur) n[j] = cur->next;
}
+ if (H5F_istore_preempt(f, cur)<0) nerrors++;
}
}