We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26046fb commit 4759891Copy full SHA for 4759891
hdf5/src/hl/plist/file_access.rs
@@ -1440,8 +1440,13 @@ impl FileAccessBuilder {
1440
v.min_raw_perc as _,
1441
));
1442
}
1443
- if let Some(v) = self.evict_on_close {
1444
- h5try!(H5Pset_evict_on_close(id, hbool_t::from(v)));
+ if let Some(evict) = self.evict_on_close {
+ // Issue #259: H5Pset_evict_on_close is not allowed to be called
1445
+ // even if the argument is `false` on e.g. parallel/mpio setups
1446
+ let has_evict_on_close = h5get!(H5Pget_evict_on_close(id): hbool_t).map(|x| x > 0);
1447
+ if evict != has_evict_on_close.unwrap_or(false) {
1448
+ h5try!(H5Pset_evict_on_close(id, hbool_t::from(evict)));
1449
+ }
1450
1451
if let Some(v) = self.mdc_image_config {
1452
let v = v.into();
0 commit comments