[QUEUED scylla next] replica: distributed_loader: reindent reshape

0 views
Skip to first unread message

Commit Bot

<bot@cloudius-systems.com>
unread,
May 24, 2022, 11:02:08 AM5/24/22
to scylladb-dev@googlegroups.com, Benny Halevy
From: Benny Halevy <bha...@scylladb.com>
Committer: Benny Halevy <bha...@scylladb.com>
Branch: next

replica: distributed_loader: reindent reshape

Signed-off-by: Benny Halevy <bha...@scylladb.com>

---
diff --git a/replica/distributed_loader.cc b/replica/distributed_loader.cc
--- a/replica/distributed_loader.cc
+++ b/replica/distributed_loader.cc
@@ -245,11 +245,11 @@ distributed_loader::reshape(sharded<sstables::sstable_directory>& dir, sharded<r
auto& iop = service::get_local_streaming_priority();
return d.reshape(cm, table, creator, iop, mode, filter);
}, uint64_t(0), std::plus<uint64_t>());
- // FIXME: indentation
- if (total_size > 0) {
- auto duration = std::chrono::duration_cast<std::chrono::duration<float>>(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::duration<float>>(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

Commit Bot

<bot@cloudius-systems.com>
unread,
May 25, 2022, 12:07:35 AM5/25/22
to scylladb-dev@googlegroups.com, Benny Halevy
From: Benny Halevy <bha...@scylladb.com>
Committer: Benny Halevy <bha...@scylladb.com>
Branch: master
Reply all
Reply to author
Forward
0 new messages