From a929f483725df87779212c757688905058b15f8d Mon Sep 17 00:00:00 2001 From: aajwy-gitee <13051180828@163.com> Date: Mon, 6 Sep 2021 07:28:10 +0000 Subject: [PATCH] =?UTF-8?q?update=20services/hilogd/log=5Fquerier.cpp.=20p?= =?UTF-8?q?ersister->Init()=E8=BF=94=E5=9B=9E=E5=80=BC=E5=88=A4=E5=AE=9A?= =?UTF-8?q?=E4=B8=8D=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/hilogd/log_querier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/hilogd/log_querier.cpp b/services/hilogd/log_querier.cpp index a53da67..18f0cf9 100644 --- a/services/hilogd/log_querier.cpp +++ b/services/hilogd/log_querier.cpp @@ -101,7 +101,7 @@ int JobLauncher(const LogPersistStartMsg& pMsg, const HilogBuffer& buffer, bool int rotatorRes = rotator->Init(); int saveInfoRes = rotator->SaveInfo(pMsg, persister->queryCondition); int persistRes = persister->Init(); - if (persistRes == RET_FAIL || saveInfoRes == RET_FAIL || rotatorRes == RET_FAIL) { + if (persistRes != 0 || saveInfoRes != 0 || rotatorRes != 0) { cout << "LogPersister failed to initialize!" << endl; persister.reset(); return RET_FAIL; -- Gitee