From 434994907262cf5c00209eb9f5f2d9201ca2389b Mon Sep 17 00:00:00 2001 From: laihui <1353307710@qq.com> Date: Wed, 4 Sep 2024 15:31:43 +0800 Subject: [PATCH] do not use strlen to calculate the length of msg --- be/src/io/fs/multi_table_pipe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/io/fs/multi_table_pipe.cpp b/be/src/io/fs/multi_table_pipe.cpp index 357abee9d0fdb1..70ad64a81ce7cb 100644 --- a/be/src/io/fs/multi_table_pipe.cpp +++ b/be/src/io/fs/multi_table_pipe.cpp @@ -96,7 +96,7 @@ std::string MultiTablePipe::parse_dst_table(const char* data, size_t size) { Status MultiTablePipe::dispatch(const std::string& table, const char* data, size_t size, AppendFunc cb) { - if (size == 0 || strlen(data) == 0) { + if (size == 0) { LOG(WARNING) << "empty data for table: " << table << ", ctx: " << _ctx->brief(); return Status::InternalError("empty data"); }