db/system_distributed_keyspace: do not announce empty schema

This commit is contained in:
Gleb Natapov
2022-06-09 08:08:12 +03:00
parent 6e100d1ea3
commit 727a9071d8

View File

@@ -315,8 +315,10 @@ future<> system_distributed_keyspace::start() {
std::move(m2.begin(), m2.end(), std::back_inserter(m1));
return m1;
});
co_await _mm.announce(std::move(m), std::move(group0_guard),
"Create system_distributed(_everywhere) tables");
if (m.size()) {
co_await _mm.announce(std::move(m), std::move(group0_guard),
"Create system_distributed(_everywhere) tables");
}
} else {
dlogger.info("All tables are present on start");
}