Merge pull request #21319 from taosdata/fix/TD-24178
fix: file fd not clear issue
This commit is contained in:
commit
9033d34852
|
@ -449,6 +449,7 @@ static void *tscCrashReportThreadFp(void *param) {
|
|||
tscError("failed to send crash report");
|
||||
if (pFile) {
|
||||
taosReleaseCrashLogFile(pFile, false);
|
||||
pFile = NULL;
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
|
@ -468,6 +469,7 @@ static void *tscCrashReportThreadFp(void *param) {
|
|||
|
||||
if (pFile) {
|
||||
taosReleaseCrashLogFile(pFile, truncateFile);
|
||||
pFile = NULL;
|
||||
truncateFile = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -91,6 +91,7 @@ static void *dmCrashReportThreadFp(void *param) {
|
|||
dError("failed to send crash report");
|
||||
if (pFile) {
|
||||
taosReleaseCrashLogFile(pFile, false);
|
||||
pFile = NULL;
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
|
@ -110,6 +111,7 @@ static void *dmCrashReportThreadFp(void *param) {
|
|||
|
||||
if (pFile) {
|
||||
taosReleaseCrashLogFile(pFile, truncateFile);
|
||||
pFile = NULL;
|
||||
truncateFile = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue