mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 09:52:38 +00:00
Bugfix
This commit is contained in:
parent
f74b7331f5
commit
645ce7c9a4
@ -237,7 +237,7 @@ SchemaSelector::SchemaSelector(const Poco::Util::AbstractConfiguration & config,
|
|||||||
if (!std::all_of(name.begin(), name.end(), isWordCharASCII))
|
if (!std::all_of(name.begin(), name.end(), isWordCharASCII))
|
||||||
throw Exception("Schema name can contain only alphanumeric and '_' (" + name + ")", ErrorCodes::EXCESSIVE_ELEMENT_IN_CONFIG);
|
throw Exception("Schema name can contain only alphanumeric and '_' (" + name + ")", ErrorCodes::EXCESSIVE_ELEMENT_IN_CONFIG);
|
||||||
schemas.emplace(name, Schema{config, config_prefix + "." + name, disks});
|
schemas.emplace(name, Schema{config, config_prefix + "." + name, disks});
|
||||||
LOG_INFO(logger, "Storage schema " << name << " Sloaded");
|
LOG_INFO(logger, "Storage schema " << name << " loaded");
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr auto default_schema_name = "default";
|
constexpr auto default_schema_name = "default";
|
||||||
|
@ -170,6 +170,8 @@ public:
|
|||||||
{
|
{
|
||||||
/// Just make reservation if size is 0
|
/// Just make reservation if size is 0
|
||||||
if (size == 0) {
|
if (size == 0) {
|
||||||
|
std::lock_guard lock(DiskSpaceMonitor::mutex);
|
||||||
|
reserves = &DiskSpaceMonitor::reserved[disk_ptr->getName()];
|
||||||
++reserves->reservation_count;
|
++reserves->reservation_count;
|
||||||
valid = true;
|
valid = true;
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user