diff --git a/services/distributeddataservice/service/data_share/common/db_delegate.cpp b/services/distributeddataservice/service/data_share/common/db_delegate.cpp index 9e77bcbb4dece55fc62f1ac907b7be2f95bbed01..2915b83f8deb1be8b1c051281a57aacd1b7cc01c 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));