提交 57dfdae3 编写于 作者: X Xu Peng

feat(db): fix bug and add exception catch in meta operation


Former-commit-id: 6d33945997e7a528bc729efdad6076d6532f79b3
上级 486c175b
......@@ -184,7 +184,8 @@ void DBImpl::background_call() {
std::lock_guard<std::mutex> lock(_mutex);
assert(_bg_compaction_scheduled);
if (!_bg_error.ok()) return;
if (!_bg_error.ok() || _shutting_down.load(std::memory_order_acquire))
return ;
background_compaction();
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册