Skip to content

Commit

Permalink
Rename arg splitted_block_log_destination_dir to split_block_log_dest…
Browse files Browse the repository at this point in the history
…ination_dir
  • Loading branch information
asuch committed Aug 5, 2024
1 parent 1e33b11 commit df73504
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ namespace hive { namespace utilities {
* @param monolith_path to log file.
* @param head_part_number highest number of part file to be generated, Deduct from source file if 0.
* @param part_count how many part files shall be generated. All if 0.
* @param splitted_block_log_destination_dir directory where new style multiple block_log files will be stored. By default it's the same place where monolith block_log is.
* @param split_block_log_destination_dir directory where new style multiple block_log files will be stored. By default it's the same place where monolith block_log is.
* @throws lots of FC_ASSERTs.
*/
void split_block_log( fc::path monolith_path, uint32_t head_part_number, size_t part_count,
appbase::application& app, hive::chain::blockchain_worker_thread_pool& thread_pool,
const fc::optional<fc::path> splitted_block_log_destination_dir = fc::optional<fc::path>() );
const fc::optional<fc::path> split_block_log_destination_dir = fc::optional<fc::path>() );

} } // hive::utilities
4 changes: 2 additions & 2 deletions libraries/utilities/split_block_log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ using hive::chain::blockchain_worker_thread_pool;

void split_block_log( fc::path monolith_path, uint32_t head_part_number, size_t part_count,
appbase::application& app, blockchain_worker_thread_pool& thread_pool,
const fc::optional<fc::path> splitted_block_log_destination_dir )
const fc::optional<fc::path> split_block_log_destination_dir )
{
std::stringstream request;
request << "Requested generation of "
Expand Down Expand Up @@ -49,7 +49,7 @@ void split_block_log( fc::path monolith_path, uint32_t head_part_number, size_t

ilog( "Actual tail_part_number: ${tail_part_number}", (tail_part_number) );

fc::path output_path( (splitted_block_log_destination_dir ? *splitted_block_log_destination_dir : monolith_path.parent_path()) );
fc::path output_path( (split_block_log_destination_dir ? *split_block_log_destination_dir : monolith_path.parent_path()) );
fc::directory_iterator it( output_path );
fc::directory_iterator end_it;
for( ; it != end_it; it++ )
Expand Down

0 comments on commit df73504

Please sign in to comment.