From 0bdd069738a49c1239f6b3bb1e8df1dda6db0a0e Mon Sep 17 00:00:00 2001 From: Jonas Isensee Date: Mon, 16 Aug 2021 17:11:47 +0200 Subject: [PATCH] another fix --- src/JLD2.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/JLD2.jl b/src/JLD2.jl index 9c191ea0..170ebd3d 100644 --- a/src/JLD2.jl +++ b/src/JLD2.jl @@ -173,9 +173,9 @@ mutable struct JLDFile{T<:IO} datatype_locations::OrderedDict{RelOffset,CommittedDatatype} datatypes::Vector{H5Datatype} datatype_wsession::JLDWriteSession{Dict{UInt,RelOffset}} - jlh5type::IdDict - h5jltype::IdDict - jloffset::Dict{RelOffset,WeakRef} + jlh5type::IdDict # Julia Type → H5Type + h5jltype::IdDict # H5Type → Julia Type + jloffset::Dict{RelOffset,WeakRef} # Cache for (mutable) loaded objects end_of_data::Int64 global_heaps::Dict{RelOffset,GlobalHeap} global_heap::GlobalHeap @@ -374,7 +374,7 @@ function load_datatypes(f::JLDFile) end function load_all_juliatypes(f::JLDFile) - length(f.juliatypes_group) == length(f.datatype_locations_rev) && return + length(f.juliatypes_group) == length(f.juliatype_locations_rev) && return for offset in values(f.juliatypes_group.written_links) dt = load_dataset(f, offset) f.datatype_locations[offset] = dt