mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Replace throw in debug mode in destructor
FileSegmentsHolder: - Replaced throw in destructor with assert for all #ifdef modes.
This commit is contained in:
parent
b56beeca9d
commit
cb698c4cc1
@ -532,11 +532,8 @@ FileSegmentsHolder::~FileSegmentsHolder()
|
|||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
#ifdef NDEBUG
|
|
||||||
tryLogCurrentException(__PRETTY_FUNCTION__);
|
tryLogCurrentException(__PRETTY_FUNCTION__);
|
||||||
#else
|
assert(false);
|
||||||
throw;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user