Skip to content

Commit 7e87fab

Browse files
committed
FAPL: fix split driver for 1.8.9 and earlier
1 parent a8cb443 commit 7e87fab

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/hl/plist/file_access.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,14 +357,17 @@ impl Default for SplitDriver {
357357

358358
impl SplitDriver {
359359
pub(crate) fn from_multi(drv: &MultiDriver) -> Option<Self> {
360-
let layout = MultiLayout {
360+
let mut layout = MultiLayout {
361361
mem_super: 0,
362362
mem_btree: 0,
363363
mem_draw: 1,
364-
mem_gheap: 1,
364+
mem_gheap: 0,
365365
mem_lheap: 0,
366366
mem_object: 0,
367367
};
368+
if cfg!(hdf5_1_8_10) {
369+
layout.mem_gheap = 1; // was changed in 1.8.10
370+
}
368371
let is_split = drv.relax
369372
&& drv.layout == layout
370373
&& drv.files.len() == 2

0 commit comments

Comments
 (0)