From e65b8bba78dd32cc7477da87d8f02a63bff6ddff Mon Sep 17 00:00:00 2001 From: turbo jason Date: Thu, 21 May 2020 17:00:28 +0800 Subject: [PATCH] [incubator-doris][be][log][glog][bug] convert init be log file length use fopen function --- thirdparty/patches/glog-0.3.3-for-palo2.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirdparty/patches/glog-0.3.3-for-palo2.patch b/thirdparty/patches/glog-0.3.3-for-palo2.patch index d9477c88042273..33cdc3870a55ca 100644 --- a/thirdparty/patches/glog-0.3.3-for-palo2.patch +++ b/thirdparty/patches/glog-0.3.3-for-palo2.patch @@ -298,7 +298,7 @@ + // Mark the file close-on-exec. We don't really care if this fails + fcntl(fd, F_SETFD, FD_CLOEXEC); +#endif -+ file_ = fdopen(fd, "ra"); // Read and append a FILE*. ++ file_ = fopen(filename, "a+"); // Read and append a FILE*. + if (file_ == NULL) { // Man, we're screwed!, try to create new log file + close(fd); + }