mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-28 10:41:12 +00:00
sstables/compaction_manager: log user initiated compaction
Sometimes it's hard to figure out from log whether user run major compaction. Fixes #1303. Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com> Message-Id: <20180504181047.20277-1-raphaelsc@scylladb.com>
This commit is contained in:
committed by
Duarte Nunes
parent
7916368df8
commit
b65bc511fe
@@ -239,6 +239,8 @@ future<> compaction_manager::submit_major_compaction(column_family* cf) {
|
||||
auto sstables = get_candidates(*cf);
|
||||
auto compacting = compacting_sstable_registration(this, sstables);
|
||||
|
||||
cmlog.info0("User initiated compaction started on behalf of {}.{}", cf->schema()->ks_name(), cf->schema()->cf_name());
|
||||
|
||||
return with_scheduling_group(_scheduling_group, [this, cf, sstables = std::move(sstables)] () mutable {
|
||||
return cf->compact_sstables(sstables::compaction_descriptor(std::move(sstables)));
|
||||
}).then([compacting = std::move(compacting)] {});
|
||||
|
||||
Reference in New Issue
Block a user