From 2b3dca319a830b14805145878a36af36cd9a61a8 Mon Sep 17 00:00:00 2001 From: xiao-77 Date: Tue, 26 Nov 2024 10:07:00 +0800 Subject: [PATCH] Fix some ci error. --- source/dnode/mnode/impl/src/mndConfig.c | 2 +- tests/pytest/util/log.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dnode/mnode/impl/src/mndConfig.c b/source/dnode/mnode/impl/src/mndConfig.c index 978e3e33d7..563c14411d 100644 --- a/source/dnode/mnode/impl/src/mndConfig.c +++ b/source/dnode/mnode/impl/src/mndConfig.c @@ -66,7 +66,7 @@ int32_t taosGetConfigObjSize(SConfigObj *obj) { if (obj->dtype == CFG_DTYPE_STRING || obj->dtype == CFG_DTYPE_DIR || obj->dtype == CFG_DTYPE_LOCALE || obj->dtype == CFG_DTYPE_CHARSET || obj->dtype == CFG_DTYPE_TIMEZONE) { if (obj->str != NULL) { - size += strlen(obj->str); + size += strlen(obj->str) + 1; } } return size; diff --git a/tests/pytest/util/log.py b/tests/pytest/util/log.py index e6218faa12..000c907ea4 100644 --- a/tests/pytest/util/log.py +++ b/tests/pytest/util/log.py @@ -15,7 +15,7 @@ import sys import os import time import datetime -from setuptools import logging as printf +from distutils.log import warn as printf class TDLog: