mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
add notification sending
This commit is contained in:
parent
5473b5a051
commit
ec4e0ed1b2
@ -128,6 +128,7 @@ void WorkloadEntityDiskStorage::loadEntities()
|
||||
|
||||
void WorkloadEntityDiskStorage::reloadEntities()
|
||||
{
|
||||
// TODO(serxa): it does not send notifications, maybe better to remove this method completely
|
||||
loadEntitiesImpl();
|
||||
}
|
||||
|
||||
|
@ -152,6 +152,8 @@ bool WorkloadEntityStorageBase::storeEntity(
|
||||
onEntityAdded(entity_type, entity_name, create_entity_query);
|
||||
}
|
||||
|
||||
sendNotifications();
|
||||
|
||||
return stored;
|
||||
}
|
||||
|
||||
@ -183,6 +185,8 @@ bool WorkloadEntityStorageBase::removeEntity(
|
||||
onEntityRemoved(entity_type, entity_name);
|
||||
}
|
||||
|
||||
sendNotifications();
|
||||
|
||||
return removed;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user