diff options
author | David Young <dyoung@hdfgroup.org> | 2020-09-17 20:24:36 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-09-17 20:24:36 (GMT) |
commit | 07ad063b4b57ae54881ab523ccdbeabbebe34fc0 (patch) | |
tree | 1e3a377fbfc6197d1eb6a1816d94ecae0ee2e8d7 /test/cache_image.c | |
parent | 8e2053bb3d29ab8f90cd28d7e66641ac2472063e (diff) | |
download | hdf5-07ad063b4b57ae54881ab523ccdbeabbebe34fc0.zip hdf5-07ad063b4b57ae54881ab523ccdbeabbebe34fc0.tar.gz hdf5-07ad063b4b57ae54881ab523ccdbeabbebe34fc0.tar.bz2 |
Limit the repeat rate for duplicate zoo warnings to once every five
seconds.
Diffstat (limited to 'test/cache_image.c')
-rw-r--r-- | test/cache_image.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/test/cache_image.c b/test/cache_image.c index d4002c7..5716f07 100644 --- a/test/cache_image.c +++ b/test/cache_image.c @@ -27,6 +27,8 @@ const char *FILENAMES[] = { NULL }; +static struct timespec lastmsgtime = {.tv_sec = 0, .tv_nsec = 0}; + /* local utility function declarations */ static void create_datasets(hid_t file_id, int min_dset, int max_dset); static void delete_datasets(hid_t file_id, int min_dset, int max_dset); @@ -4819,9 +4821,9 @@ cache_image_smoke_check_5(hbool_t single_file_vfd) /* 3) Construct a "zoo" in the above group, and validate it. */ if ( pass ) - pass = create_zoo(file_id, process_group_name, + pass = create_zoo(file_id, process_group_name, &lastmsgtime, (zoo_config_t){.proc_num = min_group, .skip_varlen = false, - .skip_compact = false}); + .skip_compact = false, .msgival = {0, 0}}); #if H5C_COLLECT_CACHE_STATS if ( pass ) { @@ -4893,9 +4895,9 @@ cache_image_smoke_check_5(hbool_t single_file_vfd) /* 6) Validate the "zoo" created in the previous file open. */ if ( pass ) { - pass = validate_zoo(file_id, process_group_name, + pass = validate_zoo(file_id, process_group_name, &lastmsgtime, (zoo_config_t){.proc_num = max_group, .skip_varlen = false, - .skip_compact = false}); + .skip_compact = false, .msgival = {0, 0}}); } #if H5C_COLLECT_CACHE_STATS @@ -4937,9 +4939,9 @@ cache_image_smoke_check_5(hbool_t single_file_vfd) /* 8) Construct a "zoo" in the above group, and validate it. */ if ( pass ) { - pass = create_zoo(file_id, process_group_name, + pass = create_zoo(file_id, process_group_name, &lastmsgtime, (zoo_config_t){.proc_num = max_group, .skip_varlen = false, - .skip_compact = false}); + .skip_compact = false, .msgival = {0, 0}}); } if ( show_progress ) @@ -5001,9 +5003,9 @@ cache_image_smoke_check_5(hbool_t single_file_vfd) i = min_group; while(pass && i <= max_group) { HDsprintf(process_group_name, "/process_%d", i); - pass = validate_zoo(file_id, process_group_name, + pass = validate_zoo(file_id, process_group_name, &lastmsgtime, (zoo_config_t){.proc_num = i++, .skip_varlen = false, - .skip_compact = false}); + .skip_compact = false, .msgival = {0, 0}}); } #if H5C_COLLECT_CACHE_STATS @@ -5056,9 +5058,9 @@ cache_image_smoke_check_5(hbool_t single_file_vfd) while ( ( pass ) && ( i <= max_group ) ) { HDsprintf(process_group_name, "/process_%d", i); - pass = validate_zoo(file_id, process_group_name, + pass = validate_zoo(file_id, process_group_name, &lastmsgtime, (zoo_config_t){.proc_num = i++, .skip_varlen = false, - .skip_compact = false}); + .skip_compact = false, .msgival = {0, 0}}); } #if H5C_COLLECT_CACHE_STATS @@ -5122,9 +5124,9 @@ cache_image_smoke_check_5(hbool_t single_file_vfd) i = min_group; while ( ( pass ) && ( i <= max_group ) ) { HDsprintf(process_group_name, "/process_%d", i); - pass = validate_zoo(file_id, process_group_name, + pass = validate_zoo(file_id, process_group_name, &lastmsgtime, (zoo_config_t){.proc_num = i++, .skip_varlen = false, - .skip_compact = false}); + .skip_compact = false, .msgival = {0, 0}}); } #if H5C_COLLECT_CACHE_STATS |