From 692d65830288b0ecb34c749ba078482065862b9b Mon Sep 17 00:00:00 2001 From: suoqilong Date: Fri, 6 Jun 2025 09:59:16 +0000 Subject: [PATCH 1/2] =?UTF-8?q?kv=E6=B7=BB=E5=8A=A0=E5=8C=BF=E5=90=8D?= =?UTF-8?q?=E6=89=93=E5=8D=B0-0606?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: suoqilong --- .../service/backup/src/backup_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/distributeddataservice/service/backup/src/backup_manager.cpp b/services/distributeddataservice/service/backup/src/backup_manager.cpp index d957de357..10fa81693 100644 --- a/services/distributeddataservice/service/backup/src/backup_manager.cpp +++ b/services/distributeddataservice/service/backup/src/backup_manager.cpp @@ -325,7 +325,7 @@ bool BackupManager::RemoveFile(const std::string &path) return true; } if (remove(path.c_str()) != 0) { - ZLOGE("remove error:%{public}d, path:%{public}s", errno, path.c_str()); + ZLOGE("remove error:%{public}d, path:%{public}s", errno, StoreUtil::Anonymous(path).c_str()); return false; } return true; -- Gitee From d402b6fddc4dc12c4989ccc49ee608b53da2648a Mon Sep 17 00:00:00 2001 From: suoqilong Date: Sat, 7 Jun 2025 02:23:11 +0000 Subject: [PATCH 2/2] =?UTF-8?q?kv=E6=B7=BB=E5=8A=A0=E5=8C=BF=E5=90=8D?= =?UTF-8?q?=E6=89=93=E5=8D=B0-0606?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: suoqilong --- .../service/backup/src/backup_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/distributeddataservice/service/backup/src/backup_manager.cpp b/services/distributeddataservice/service/backup/src/backup_manager.cpp index 10fa81693..bec2b5d13 100644 --- a/services/distributeddataservice/service/backup/src/backup_manager.cpp +++ b/services/distributeddataservice/service/backup/src/backup_manager.cpp @@ -27,6 +27,7 @@ #include "log_print.h" #include "metadata/meta_data_manager.h" #include "types.h" +#include "utils/anonymous.h" namespace OHOS::DistributedData { namespace { constexpr const int COPY_SIZE = 1024; @@ -325,7 +326,7 @@ bool BackupManager::RemoveFile(const std::string &path) return true; } if (remove(path.c_str()) != 0) { - ZLOGE("remove error:%{public}d, path:%{public}s", errno, StoreUtil::Anonymous(path).c_str()); + ZLOGE("remove error:%{public}d, path:%{public}s", errno, Anonymous::Change(path).c_str()); return false; } return true; -- Gitee