File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -3373,20 +3373,23 @@ std::future<void> HDF5IOHandlerImpl::flush(internal::ParsedFlushParams ¶ms)
33733373 if (params.backendConfig .json ().contains (" hdf5" ))
33743374 {
33753375 auto hdf5_config = params.backendConfig [" hdf5" ];
3376+ auto init_json_shadow = nlohmann::json::parse (flush_cfg_mask);
3377+ json::merge_internal (
3378+ hdf5_config.getShadow (), init_json_shadow, /* do_prune = */ false );
33763379
33773380 if (auto shadow = hdf5_config.invertShadow (); shadow.size () > 0 )
33783381 {
33793382 switch (hdf5_config.originallySpecifiedAs )
33803383 {
33813384 case json::SupportedLanguages::JSON:
3382- std::cerr << " Warning: parts of the backend configuration for "
3383- " HDF5 remain unused:\n "
3385+ std::cerr << " Warning: parts of the backend flush "
3386+ " configuration for HDF5 remain unused:\n "
33843387 << shadow << std::endl;
33853388 break ;
33863389 case json::SupportedLanguages::TOML: {
33873390 auto asToml = json::jsonToToml (shadow);
3388- std::cerr << " Warning: parts of the backend configuration for "
3389- " HDF5 remain unused:\n "
3391+ std::cerr << " Warning: parts of the backend flush "
3392+ " configuration for HDF5 remain unused:\n "
33903393 << json::format_toml (asToml) << std::endl;
33913394 break ;
33923395 }
You can’t perform that action at this time.
0 commit comments