diff --git a/src/util/src/tlog.c b/src/util/src/tlog.c index 6807da07e8faae7ffacb5c99fe52decf28364464..397c17994d6cb04abecf4b7427278eb4381bf20b 100644 --- a/src/util/src/tlog.c +++ b/src/util/src/tlog.c @@ -323,7 +323,7 @@ char *tprefix(char *prefix) { } void tprintf(const char *const flags, int dflag, const char *const format, ...) { - if (tsTotalLogDirGB != 0 && tsAvailLogDirGB < (tsMinimalLogDirGB / 2)) { + if (tsTotalLogDirGB != 0 && tsAvailLogDirGB < tsMinimalLogDirGB) { printf("server disk space remain %.3f GB, stop write log\n", tsAvailLogDirGB); fflush(stdout); return; @@ -375,7 +375,7 @@ void tprintf(const char *const flags, int dflag, const char *const format, ...) } void taosDumpData(unsigned char *msg, int len) { - if (tsTotalLogDirGB != 0 && tsAvailLogDirGB < (tsMinimalLogDirGB / 2)) { + if (tsTotalLogDirGB != 0 && tsAvailLogDirGB < tsMinimalLogDirGB) { printf("server disk space remain %.3f GB, stop write log\n", tsAvailLogDirGB); fflush(stdout); return; @@ -404,7 +404,7 @@ void taosDumpData(unsigned char *msg, int len) { } void taosPrintLongString(const char *const flags, int dflag, const char *const format, ...) { - if (tsTotalLogDirGB != 0 && tsAvailLogDirGB < (tsMinimalLogDirGB / 2)) { + if (tsTotalLogDirGB != 0 && tsAvailLogDirGB < tsMinimalLogDirGB) { printf("server disk space remain %.3f GB, stop write log\n", tsAvailLogDirGB); fflush(stdout); return;