未验证 提交 67fdfd4b 编写于 作者: A alexey-milovidov 提交者: GitHub

Merge pull request #22560 from azat/tiny-log-rwlock-ub-fix

Fix UB by unlocking the rwlock of the TinyLog from the same thread
......@@ -357,6 +357,8 @@ void TinyLogBlockOutputStream::writeSuffix()
for (const auto & file : column_files)
storage.file_checker.update(file);
storage.file_checker.save();
lock.unlock();
}
......
......@@ -70,7 +70,7 @@ private:
Files files;
FileChecker file_checker;
mutable std::shared_timed_mutex rwlock;
std::shared_timed_mutex rwlock;
Poco::Logger * log;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册