From 8b9e9671dede7e615c4e8214c5ca3d04662f67f5 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Wed, 15 Feb 2023 15:54:51 +0300 Subject: [PATCH] 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 --- replica/distributed_loader.cc | 2 +- sstables/sstable_directory.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/replica/distributed_loader.cc b/replica/distributed_loader.cc index f0f564b277..2b31a6fc51 100644 --- a/replica/distributed_loader.cc +++ b/replica/distributed_loader.cc @@ -742,7 +742,7 @@ future<> distributed_loader::populate_keyspace(distributed& 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; diff --git a/sstables/sstable_directory.cc b/sstables/sstable_directory.cc index 095b9c4ec0..595047cc5f 100644 --- a/sstables/sstable_directory.cc +++ b/sstables/sstable_directory.cc @@ -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); }