Block memory tracking during catching exceptions in OwnSplitChannel

This commit is contained in:
Azat Khuzhin 2021-05-13 22:06:28 +03:00
parent d5767da5fd
commit b9c869871b

View File

@ -45,6 +45,8 @@ void OwnSplitChannel::tryLogSplit(const Poco::Message & msg)
} }
catch (...) catch (...)
{ {
MemoryTracker::LockExceptionInThread lock_memory_tracker(VariableContext::Global);
/// It is better to catch the errors here in order to avoid /// It is better to catch the errors here in order to avoid
/// breaking some functionality because of unexpected "File not /// breaking some functionality because of unexpected "File not
/// found" (or similar) error. /// found" (or similar) error.