提交 ff7b0d32 编写于 作者: W wgs13579 提交者: guangshu.wgs

fix coverity bug

上级 e0d68da6
...@@ -1528,12 +1528,15 @@ void ObLogger::do_async_flush_to_file(ObLogItem **log_item, const int64_t count) ...@@ -1528,12 +1528,15 @@ void ObLogger::do_async_flush_to_file(ObLogItem **log_item, const int64_t count)
} }
} }
struct iovec vec[MAX_FD_FILE][GROUP_COMMIT_MAX_ITEM_COUNT] = {0}; struct iovec vec[MAX_FD_FILE][GROUP_COMMIT_MAX_ITEM_COUNT];
int iovcnt[MAX_FD_FILE] = {0}; int iovcnt[MAX_FD_FILE] = {0};
int large_iovcnt[MAX_FD_FILE] = {0}; int large_iovcnt[MAX_FD_FILE] = {0};
struct iovec wf_vec[MAX_FD_FILE][GROUP_COMMIT_MAX_ITEM_COUNT] = {0}; struct iovec wf_vec[MAX_FD_FILE][GROUP_COMMIT_MAX_ITEM_COUNT];
int wf_iovcnt[MAX_FD_FILE] = {0}; int wf_iovcnt[MAX_FD_FILE] = {0};
memset(vec, 0, sizeof(vec));
memset(wf_vec, 0, sizeof(wf_vec));
ObLogFDType fd_type = MAX_FD_FILE; ObLogFDType fd_type = MAX_FD_FILE;
for (int64_t i = 0; i < count; ++i) { for (int64_t i = 0; i < count; ++i) {
if (OB_ISNULL(log_item[i])) { if (OB_ISNULL(log_item[i])) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册