提交 dc67223d 编写于 作者: D dapan1121

fix: file fd not clear issue

上级 de0cc463
...@@ -449,6 +449,7 @@ static void *tscCrashReportThreadFp(void *param) { ...@@ -449,6 +449,7 @@ static void *tscCrashReportThreadFp(void *param) {
tscError("failed to send crash report"); tscError("failed to send crash report");
if (pFile) { if (pFile) {
taosReleaseCrashLogFile(pFile, false); taosReleaseCrashLogFile(pFile, false);
pFile = NULL;
continue; continue;
} }
} else { } else {
...@@ -468,6 +469,7 @@ static void *tscCrashReportThreadFp(void *param) { ...@@ -468,6 +469,7 @@ static void *tscCrashReportThreadFp(void *param) {
if (pFile) { if (pFile) {
taosReleaseCrashLogFile(pFile, truncateFile); taosReleaseCrashLogFile(pFile, truncateFile);
pFile = NULL;
truncateFile = false; truncateFile = false;
} }
......
...@@ -91,6 +91,7 @@ static void *dmCrashReportThreadFp(void *param) { ...@@ -91,6 +91,7 @@ static void *dmCrashReportThreadFp(void *param) {
dError("failed to send crash report"); dError("failed to send crash report");
if (pFile) { if (pFile) {
taosReleaseCrashLogFile(pFile, false); taosReleaseCrashLogFile(pFile, false);
pFile = NULL;
continue; continue;
} }
} else { } else {
...@@ -110,6 +111,7 @@ static void *dmCrashReportThreadFp(void *param) { ...@@ -110,6 +111,7 @@ static void *dmCrashReportThreadFp(void *param) {
if (pFile) { if (pFile) {
taosReleaseCrashLogFile(pFile, truncateFile); taosReleaseCrashLogFile(pFile, truncateFile);
pFile = NULL;
truncateFile = false; truncateFile = false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册