mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 18:32:29 +00:00
Merge branch 'master' of github.com:ClickHouse/ClickHouse
This commit is contained in:
commit
968107d149
@ -21,7 +21,15 @@ namespace ErrorCodes
|
|||||||
FileChecker::FileChecker(DiskPtr disk_, const String & file_info_path_) : disk(std::move(disk_))
|
FileChecker::FileChecker(DiskPtr disk_, const String & file_info_path_) : disk(std::move(disk_))
|
||||||
{
|
{
|
||||||
setPath(file_info_path_);
|
setPath(file_info_path_);
|
||||||
|
try
|
||||||
|
{
|
||||||
load();
|
load();
|
||||||
|
}
|
||||||
|
catch (DB::Exception & e)
|
||||||
|
{
|
||||||
|
e.addMessage("Error loading file {}", files_info_path);
|
||||||
|
throw;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileChecker::setPath(const String & file_info_path_)
|
void FileChecker::setPath(const String & file_info_path_)
|
||||||
|
@ -173,7 +173,7 @@ void MemoryTracker::allocImpl(Int64 size, bool throw_if_memory_exceeded)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MEMORY_TRACKER_DEBUG_CHECKS
|
#ifdef MEMORY_TRACKER_DEBUG_CHECKS
|
||||||
if (unlikely(_memory_tracker_always_throw_logical_error_on_allocation) && throw_if_memory_exceeded)
|
if (unlikely(_memory_tracker_always_throw_logical_error_on_allocation))
|
||||||
{
|
{
|
||||||
_memory_tracker_always_throw_logical_error_on_allocation = false;
|
_memory_tracker_always_throw_logical_error_on_allocation = false;
|
||||||
throw DB::Exception(DB::ErrorCodes::LOGICAL_ERROR, "Memory tracker: allocations not allowed.");
|
throw DB::Exception(DB::ErrorCodes::LOGICAL_ERROR, "Memory tracker: allocations not allowed.");
|
||||||
|
Loading…
Reference in New Issue
Block a user