diff --git a/src/util/src/tlog.c b/src/util/src/tlog.c index b81553c587cfb852bc5eecfc56c1e008b26581bc..a0ad93cf2226cc53693bb857ffdec1c45e77c4b7 100644 --- a/src/util/src/tlog.c +++ b/src/util/src/tlog.c @@ -667,7 +667,7 @@ static void taosWriteLog(SLogBuff *tLogBuff) { start = LOG_BUF_START(tLogBuff); end = LOG_BUF_END(tLogBuff); - int32_t pollSize = taosGetLogRemainSize(tLogBuff, start, end); + pollSize = taosGetLogRemainSize(tLogBuff, start, end); if (pollSize < tLogBuff->minBuffSize) { break; }