This is an automated email from the ASF dual-hosted git repository.

yangzhg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new cf1fcdd  fix BE coredump in UserFunctionCache (#6331)
cf1fcdd is described below

commit cf1fcdd614ed2016f23af94a2ef3b27f3340ac9b
Author: weizuo93 <[email protected]>
AuthorDate: Fri Jul 30 09:24:30 2021 +0800

    fix BE coredump in UserFunctionCache (#6331)
    
    Co-authored-by: weizuo <[email protected]>
---
 be/src/runtime/user_function_cache.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/runtime/user_function_cache.cpp 
b/be/src/runtime/user_function_cache.cpp
index f173feb..aa1086e 100644
--- a/be/src/runtime/user_function_cache.cpp
+++ b/be/src/runtime/user_function_cache.cpp
@@ -305,7 +305,7 @@ Status UserFunctionCache::_download_lib(const std::string& 
url, UserFunctionCach
     auto fp_closer = [](FILE* fp) { fclose(fp); };
     std::unique_ptr<FILE, decltype(fp_closer)> fp(fopen(tmp_file.c_str(), 
"w"), fp_closer);
     if (fp == nullptr) {
-        LOG(WARNING) << "fail to open file, file=" << tmp_file << ", error=" 
<< ferror(fp.get());
+        LOG(WARNING) << "fail to open file, file=" << tmp_file;
         return Status::InternalError("fail to open file");
     }
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to