replica: wrap column families related maps into tables_metadata
As a preparation for ensuring access safety for column families related maps, add tables_metadata, access to members of which would be protected by rwlock.
This commit is contained in:
@@ -265,7 +265,7 @@ void view_update_generator::setup_metrics() {
|
||||
}
|
||||
|
||||
void view_update_generator::discover_staging_sstables() {
|
||||
for (auto& x : _db.get_column_families()) {
|
||||
for (auto& x : _db.get_tables_metadata()._column_families) {
|
||||
auto t = x.second->shared_from_this();
|
||||
for (auto sstables = t->get_sstables(); sstables::shared_sstable sst : *sstables) {
|
||||
if (sst->requires_view_building()) {
|
||||
|
||||
Reference in New Issue
Block a user