You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2020/05/26 14:42:59 UTC
[incubator-doris] branch master updated: [Thirdparty][glog][bug]
convert init be log file length use fopen function (#3649)
This is an automated email from the ASF dual-hosted git repository.
morningman 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 12c59ba [Thirdparty][glog][bug] convert init be log file length use fopen function (#3649)
12c59ba is described below
commit 12c59ba889cdde24a6211651c166936a4593f191
Author: turbo jason <so...@jd.com>
AuthorDate: Tue May 26 22:42:50 2020 +0800
[Thirdparty][glog][bug] convert init be log file length use fopen function (#3649)
---
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 d9477c8..33cdc38 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);
+ }
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org