diff --git a/replica/distributed_loader.cc b/replica/distributed_loader.cc index b18877274b..87426e9e40 100644 --- a/replica/distributed_loader.cc +++ b/replica/distributed_loader.cc @@ -245,11 +245,11 @@ distributed_loader::reshape(sharded& dir, sharded()); - // FIXME: indentation - if (total_size > 0) { - auto duration = std::chrono::duration_cast>(std::chrono::steady_clock::now() - start); - dblog.info("{}", fmt::format("Reshaped {} in {:.2f} seconds, {}", sstables::pretty_printed_data_size(total_size), duration.count(), sstables::pretty_printed_throughput(total_size, duration))); - } + + if (total_size > 0) { + auto duration = std::chrono::duration_cast>(std::chrono::steady_clock::now() - start); + dblog.info("{}", fmt::format("Reshaped {} in {:.2f} seconds, {}", sstables::pretty_printed_data_size(total_size), duration.count(), sstables::pretty_printed_throughput(total_size, duration))); + } } // Loads SSTables into the main directory (or staging) and returns how many were loaded