From 87d9c4d7f85dfda449d8eaf571deb266a98ec1ab Mon Sep 17 00:00:00 2001 From: Benny Halevy Date: Sun, 16 Apr 2023 12:18:36 +0300 Subject: [PATCH] sstables: filesystem_storage::change_state: simplify log message When moving to the base directory, the printout currently looks broken: ``` INFO 2023-04-16 09:15:58,631 [shard 0] sstable - Moving sstable .../data/ks/cf-4c1bb670dc3711ed96733daf102e4aab/upload/md-1-big-Data.db to in ".../data/ks/cf-4c1bb670dc3711ed96733daf102e4aab/" ``` Since `path` already contains `to`, the message can be just simplified and `to` need not be printed explicitly. Signed-off-by: Benny Halevy Closes #13525 --- sstables/sstables.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sstables/sstables.cc b/sstables/sstables.cc index 995fda64e5..a8418fa04f 100644 --- a/sstables/sstables.cc +++ b/sstables/sstables.cc @@ -2342,7 +2342,7 @@ future<> sstable::filesystem_storage::change_state(const sstable& sst, sstring t co_return; // Already there } - sstlog.info("Moving sstable {} to {} in {}", sst.get_filename(), to, path); + sstlog.info("Moving sstable {} to {}", sst.get_filename(), path); co_await move(sst, path.native(), std::move(new_generation), delay_commit); }