summaryrefslogtreecommitdiffstats
path: root/src/H5Fvfd_swmr.c
diff options
context:
space:
mode:
authorgithub-actions <41898282+github-actions[bot]@users.noreply.github.com>2022-04-21 19:00:37 (GMT)
committergithub-actions <41898282+github-actions[bot]@users.noreply.github.com>2022-04-21 19:00:37 (GMT)
commit3ed0a0ee541f90e316bbabce0b3841a306420994 (patch)
treea5e1d1f55fdab7c45d84d2da8a67b44e2e502ca2 /src/H5Fvfd_swmr.c
parent3e990fed8edb25df58d79097f7cef9b908ef5a0d (diff)
downloadhdf5-3ed0a0ee541f90e316bbabce0b3841a306420994.zip
hdf5-3ed0a0ee541f90e316bbabce0b3841a306420994.tar.gz
hdf5-3ed0a0ee541f90e316bbabce0b3841a306420994.tar.bz2
Committing clang-format changes
Diffstat (limited to 'src/H5Fvfd_swmr.c')
-rw-r--r--src/H5Fvfd_swmr.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/H5Fvfd_swmr.c b/src/H5Fvfd_swmr.c
index fce5e88..9c4360e 100644
--- a/src/H5Fvfd_swmr.c
+++ b/src/H5Fvfd_swmr.c
@@ -189,8 +189,8 @@ H5F_vfd_swmr_init(H5F_t *f, hbool_t file_create)
/* Retrieve the metadata filename built with md_file_path and md_file_name */
H5FD_vfd_swmr_get_md_path_name(f->shared->lf, &shared->md_file_path_name);
- if (((shared->vfd_swmr_md_fd = HDopen(shared->md_file_path_name,
- O_CREAT | O_RDWR | O_TRUNC, H5_POSIX_CREATE_MODE_RW))) < 0)
+ if (((shared->vfd_swmr_md_fd = HDopen(shared->md_file_path_name, O_CREAT | O_RDWR | O_TRUNC,
+ H5_POSIX_CREATE_MODE_RW))) < 0)
HGOTO_ERROR(H5E_FILE, H5E_CANTOPENFILE, FAIL, "unable to create the metadata file")
md_size = (hsize_t)shared->vfd_swmr_config.md_pages_reserved * shared->fs_page_size;
@@ -341,7 +341,7 @@ H5F_vfd_swmr_close_or_flush(H5F_t *f, hbool_t closing)
if (HDunlink(shared->md_file_path_name) < 0)
HSYS_GOTO_ERROR(H5E_FILE, H5E_CANTREMOVE, FAIL, "unable to unlink the metadata file")
- shared->md_file_path_name = (char *)H5MM_xfree(shared->md_file_path_name);
+ shared->md_file_path_name = (char *)H5MM_xfree(shared->md_file_path_name);
/* Close the free-space manager for the metadata file */
if (H5MV_close(f) < 0)
@@ -1065,7 +1065,7 @@ H5F_vfd_swmr_reader_end_of_tick(H5F_t *f, hbool_t entering_api)
herr_t ret_value = SUCCEED;
uint32_t i, j, nchanges;
H5FD_t * file = shared->lf;
- htri_t ret;
+ htri_t ret;
FUNC_ENTER_NOAPI(FAIL)
@@ -1086,14 +1086,15 @@ H5F_vfd_swmr_reader_end_of_tick(H5F_t *f, hbool_t entering_api)
*/
/* Check if make_believe is set */
- if(H5FD_vfd_swmr_get_make_believe(file)) {
+ if (H5FD_vfd_swmr_get_make_believe(file)) {
/* Return value is TRUE: metadata file is not found, continue with make_believe
and skip eot processing */
- if((ret = H5FD_vfd_swmr_assess_make_believe(file)) == TRUE) {
+ if ((ret = H5FD_vfd_swmr_assess_make_believe(file)) == TRUE) {
/* Skip most of the EOT processing */
goto reader_update_eot;
- } else if (ret == FAIL)
+ }
+ else if (ret == FAIL)
HGOTO_ERROR(H5E_ARGS, H5E_CANTGET, FAIL, "error in assessing make_believe from driver")
/* Return value is FALSE i.e. found the metadata file */
@@ -1106,8 +1107,8 @@ H5F_vfd_swmr_reader_end_of_tick(H5F_t *f, hbool_t entering_api)
/* Set make_believe to FALSE;
get out from make_believe state, continue normal processing */
H5FD_vfd_swmr_set_make_believe(file, FALSE);
-
- } else {
+ }
+ else {
/* make_believe is not set, continue normal processing */
if (H5FD_vfd_swmr_get_tick_and_idx(file, TRUE, &tmp_tick_num, &vfd_entries, NULL) < 0)
HGOTO_ERROR(H5E_ARGS, H5E_CANTGET, FAIL, "error in retrieving tick_num from driver")