distributed_loader: Print storage type when populating

On boot it's very useful to know which storage a table comes from, so
add the respective info to existing log messages.

Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>
This commit is contained in:
Pavel Emelyanov
2023-02-15 15:54:51 +03:00
parent f04c6cdf9a
commit 8b9e9671de
2 changed files with 2 additions and 2 deletions

View File

@@ -742,7 +742,7 @@ future<> distributed_loader::populate_keyspace(distributed<replica::database>& d
sstring cfname = cf->schema()->cf_name();
auto sstdir = ks.column_family_directory(ksdir, cfname, uuid);
dblog.info("Keyspace {}: Reading CF {} id={} version={}", ks_name, cfname, uuid, s->version());
dblog.info("Keyspace {}: Reading CF {} id={} version={} storage={}", ks_name, cfname, uuid, s->version(), cf->get_storage_options().type_string());
auto metadata = table_populator(db, ks_name, cfname);
std::exception_ptr ex;

View File

@@ -193,7 +193,7 @@ sstable_directory::highest_version_seen() const {
}
future<> sstable_directory::process_sstable_dir(process_flags flags) {
dirlog.debug("Start processing directory {} for SSTables", _sstable_dir);
dirlog.debug("Start processing directory {} for SSTables (storage {})", _sstable_dir, _storage_opts->type_string());
return _lister->process(*this, _sstable_dir, flags);
}