@@ -29,7 +29,7 @@ int scr_flush_file_need_flush(int id)
2929 if (scr_my_rank_world == 0 ) {
3030 /* read the flush file */
3131 kvtree * hash = kvtree_new ();
32- kvtree_read_path (scr_flush_file , hash );
32+ kvtree_read_path_locked (scr_flush_file , hash );
3333
3434 /* if we have the dataset in cache, but not on the parallel file system,
3535 * then it needs to be flushed */
@@ -60,7 +60,7 @@ int scr_flush_file_is_flushing(int id)
6060 if (scr_my_rank_world == 0 ) {
6161 /* read flush file into hash */
6262 kvtree * hash = kvtree_new ();
63- kvtree_read_path (scr_flush_file , hash );
63+ kvtree_read_path_locked (scr_flush_file , hash );
6464
6565 /* attempt to look up the FLUSHING state for this checkpoint */
6666 kvtree * dset_hash = kvtree_get_kv_int (hash , SCR_FLUSH_KEY_DATASET , id );
@@ -86,13 +86,13 @@ int scr_flush_file_dataset_remove(int id)
8686 if (scr_my_rank_world == 0 ) {
8787 /* read the flush file into hash */
8888 kvtree * hash = kvtree_new ();
89- kvtree_read_path (scr_flush_file , hash );
89+ kvtree_read_path_locked (scr_flush_file , hash );
9090
9191 /* delete this dataset id from the flush file */
9292 kvtree_unset_kv_int (hash , SCR_FLUSH_KEY_DATASET , id );
9393
9494 /* write the hash back to the flush file */
95- kvtree_write_path (scr_flush_file , hash );
95+ kvtree_write_path_locked (scr_flush_file , hash );
9696
9797 /* delete the hash */
9898 kvtree_delete (& hash );
@@ -107,14 +107,14 @@ int scr_flush_file_location_set(int id, const char* location)
107107 if (scr_my_rank_world == 0 ) {
108108 /* read the flush file into hash */
109109 kvtree * hash = kvtree_new ();
110- kvtree_read_path (scr_flush_file , hash );
110+ kvtree_read_path_locked (scr_flush_file , hash );
111111
112112 /* set the location for this dataset */
113113 kvtree * dset_hash = kvtree_set_kv_int (hash , SCR_FLUSH_KEY_DATASET , id );
114114 kvtree_set_kv (dset_hash , SCR_FLUSH_KEY_LOCATION , location );
115115
116116 /* write the hash back to the flush file */
117- kvtree_write_path (scr_flush_file , hash );
117+ kvtree_write_path_locked (scr_flush_file , hash );
118118
119119 /* delete the hash */
120120 kvtree_delete (& hash );
@@ -130,7 +130,7 @@ int scr_flush_file_location_test(int id, const char* location)
130130 if (scr_my_rank_world == 0 ) {
131131 /* read the flush file into hash */
132132 kvtree * hash = kvtree_new ();
133- kvtree_read_path (scr_flush_file , hash );
133+ kvtree_read_path_locked (scr_flush_file , hash );
134134
135135 /* check the location for this dataset */
136136 kvtree * dset_hash = kvtree_get_kv_int (hash , SCR_FLUSH_KEY_DATASET , id );
@@ -157,14 +157,14 @@ int scr_flush_file_location_unset(int id, const char* location)
157157 if (scr_my_rank_world == 0 ) {
158158 /* read the flush file into hash */
159159 kvtree * hash = kvtree_new ();
160- kvtree_read_path (scr_flush_file , hash );
160+ kvtree_read_path_locked (scr_flush_file , hash );
161161
162162 /* unset the location for this dataset */
163163 kvtree * dset_hash = kvtree_get_kv_int (hash , SCR_FLUSH_KEY_DATASET , id );
164164 kvtree_unset_kv (dset_hash , SCR_FLUSH_KEY_LOCATION , location );
165165
166166 /* write the hash back to the flush file */
167- kvtree_write_path (scr_flush_file , hash );
167+ kvtree_write_path_locked (scr_flush_file , hash );
168168
169169 /* delete the hash */
170170 kvtree_delete (& hash );
@@ -180,7 +180,7 @@ int scr_flush_file_new_entry(int id, const char* name, const scr_dataset* datase
180180 if (scr_my_rank_world == 0 ) {
181181 /* read the flush file into hash */
182182 kvtree * hash = kvtree_new ();
183- kvtree_read_path (scr_flush_file , hash );
183+ kvtree_read_path_locked (scr_flush_file , hash );
184184
185185 /* set the name, location, and flags for this dataset */
186186 kvtree * dset_hash = kvtree_set_kv_int (hash , SCR_FLUSH_KEY_DATASET , id );
@@ -200,7 +200,7 @@ int scr_flush_file_new_entry(int id, const char* name, const scr_dataset* datase
200200 kvtree_set (dset_hash , SCR_FLUSH_KEY_DSETDESC , dataset_copy );
201201
202202 /* write the hash back to the flush file */
203- kvtree_write_path (scr_flush_file , hash );
203+ kvtree_write_path_locked (scr_flush_file , hash );
204204
205205 /* delete the hash */
206206 kvtree_delete (& hash );
0 commit comments