From 41f8553d53c43059b2a0191074bfcd4d90e34570 Mon Sep 17 00:00:00 2001 From: Yihao Deng Date: Tue, 9 Jul 2024 08:35:04 +0000 Subject: [PATCH] refactor code --- source/libs/stream/src/streamMeta.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/source/libs/stream/src/streamMeta.c b/source/libs/stream/src/streamMeta.c index 15aa42e741..b38b8d73c0 100644 --- a/source/libs/stream/src/streamMeta.c +++ b/source/libs/stream/src/streamMeta.c @@ -185,13 +185,7 @@ int32_t streamMetaCvtDbFormat(SStreamMeta* pMeta) { terrno = 0; bool exist = streamBackendDataIsExist(pMeta->path, chkpId); if (exist == false) { - if (terrno != 0) { - code = terrno; - terrno = 0; - stError("failed to check backend data exist, reason:%s", tstrerror(code)); - } else { - stInfo("not need to convert stream backend formate"); - } + code = terrno; return code; }