@@ -10,8 +10,8 @@ static const fd_hash_t hash_null = { 0 };
10
10
void *
11
11
fd_store_new ( void * shmem , ulong fec_max , ulong part_cnt ) {
12
12
13
- if ( FD_UNLIKELY ( part_cnt == 0UL ) ) {
14
- FD_LOG_ERR (( "partition count must be greater than 0, should match the number of writers/shred tiles" ));
13
+ if ( FD_UNLIKELY ( part_cnt == 0UL ) ) {
14
+ FD_LOG_WARNING (( "partition count must be greater than 0, should match the number of writers/shred tiles" ));
15
15
return NULL ;
16
16
}
17
17
@@ -143,7 +143,7 @@ fd_store_insert( fd_store_t * store,
143
143
fd_store_fec_t * fec = fd_store_pool_acquire ( & pool , NULL , BLOCKING , & err );
144
144
145
145
if ( FD_UNLIKELY ( err == FD_POOL_ERR_EMPTY ) ) { FD_LOG_WARNING (( "store full %s" , fd_store_pool_strerror ( err ) )); return NULL ; } /* FIXME: eviction? max bound guaranteed for worst-case? */
146
- if ( FD_UNLIKELY ( err == FD_POOL_ERR_CORRUPT ) ) { FD_LOG_ERR (( "store corrupt %s" , fd_store_pool_strerror ( err ) )); return NULL ; }
146
+ if ( FD_UNLIKELY ( err == FD_POOL_ERR_CORRUPT ) ) { FD_LOG_WARNING (( "store corrupt %s" , fd_store_pool_strerror ( err ) )); return NULL ; }
147
147
FD_TEST ( fec );
148
148
149
149
fec -> key .mr = * merkle_root ;
@@ -217,7 +217,11 @@ fd_store_publish( fd_store_t * store,
217
217
child = fd_store_pool_ele ( & pool , child -> sibling ); /* right-sibling */
218
218
}
219
219
fd_store_fec_t * next = fd_store_pool_ele ( & pool , head -> next ); /* pophead */
220
- fd_store_pool_release ( & pool , head , BLOCKING ); /* release */
220
+ int err = fd_store_pool_release ( & pool , head , BLOCKING ); /* release */
221
+ if ( FD_UNLIKELY ( err != FD_POOL_SUCCESS ) ) {
222
+ FD_LOG_WARNING (( "failed to release fec %s" , fd_store_pool_strerror ( err ) ));
223
+ return NULL ;
224
+ }
221
225
head = next ; /* advance */
222
226
}
223
227
newr -> parent = null ; /* unlink old root */
0 commit comments