From ad7d07c47b9e238fa318643c45263c0f052e23e5 Mon Sep 17 00:00:00 2001 From: xuyunan Date: Sat, 30 Aug 2025 15:43:27 +0800 Subject: [PATCH] fix db_delegate starttimer if-encrypt path Signed-off-by: xuyunan --- .../service/data_share/common/db_delegate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/distributeddataservice/service/data_share/common/db_delegate.cpp b/services/distributeddataservice/service/data_share/common/db_delegate.cpp index 9e77bcbb4..2915b83f8 100644 --- a/services/distributeddataservice/service/data_share/common/db_delegate.cpp +++ b/services/distributeddataservice/service/data_share/common/db_delegate.cpp @@ -145,9 +145,9 @@ void DBDelegate::StartTimer(bool encrypt) dstTaskIdTemp = Executor::INVALID_TASK_ID; }; if (encrypt) { - stores_.DoActionIfEmpty(task); - } else { storesEncrypt_.DoActionIfEmpty(task); + } else { + stores_.DoActionIfEmpty(task); } }, std::chrono::seconds(INTERVAL), std::chrono::seconds(INTERVAL)); -- Gitee