提交 ad25b1af 编写于 作者: V vrqq 提交者: Facebook GitHub Bot

Update win_logger.cc : assert failed when return value not checked....

Update win_logger.cc : assert failed when return value not checked. (-DROCKSDB_ASSERT_STATUS_CHECKED) (#7955)

Summary:
Ignore return value on WinLogger::CloseInternal() when build with -DROCKSDB_ASSERT_STATUS_CHECKED on windows.

It's a good way to ignore check here?

Pull Request resolved: https://github.com/facebook/rocksdb/pull/7955

Reviewed By: jay-zhuang

Differential Revision: D26524145

Pulled By: ajkr

fbshipit-source-id: f2f643e94cde9772617c68b658fb529fffebd8ce
上级 69877ac4
...@@ -56,7 +56,7 @@ void WinLogger::DebugWriter(const char* str, int len) { ...@@ -56,7 +56,7 @@ void WinLogger::DebugWriter(const char* str, int len) {
} }
} }
WinLogger::~WinLogger() { CloseInternal(); } WinLogger::~WinLogger() { CloseInternal().PermitUncheckedError(); }
Status WinLogger::CloseImpl() { Status WinLogger::CloseImpl() {
return CloseInternal(); return CloseInternal();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册