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:
Raphael S. Carvalho
2018-05-04 15:10:47 -03:00
committed by Duarte Nunes
parent 7916368df8
commit b65bc511fe

View File

@@ -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)] {});