From a9bec7f6b77ffc8fbeb406d7afe8877597e82ab1 Mon Sep 17 00:00:00 2001 From: "yaoruozi1@huawei.com" Date: Thu, 28 Mar 2024 14:59:27 +0800 Subject: [PATCH 1/2] add log Signed-off-by: yaoruozi1@huawei.com --- services/backup_sa/src/module_ipc/service.cpp | 1 + services/backup_sa/src/module_ipc/service_incremental.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/services/backup_sa/src/module_ipc/service.cpp b/services/backup_sa/src/module_ipc/service.cpp index 7043f60e7..8a4eabf6a 100644 --- a/services/backup_sa/src/module_ipc/service.cpp +++ b/services/backup_sa/src/module_ipc/service.cpp @@ -497,6 +497,7 @@ ErrCode Service::AppDone(ErrCode errCode) proxy->HandleClear(); session_->BundleExtTimerStop(callerName); IServiceReverse::Scenario scenario = session_->GetScenario(); + if (scenario == IServiceReverse::Scenario::BACKUP) { session_->GetServiceReverseProxy()->BackupOnBundleFinished(errCode, callerName); } else if (scenario == IServiceReverse::Scenario::RESTORE) { diff --git a/services/backup_sa/src/module_ipc/service_incremental.cpp b/services/backup_sa/src/module_ipc/service_incremental.cpp index 85c39f738..6aa59f80d 100644 --- a/services/backup_sa/src/module_ipc/service_incremental.cpp +++ b/services/backup_sa/src/module_ipc/service_incremental.cpp @@ -270,6 +270,7 @@ ErrCode Service::AppIncrementalDone(ErrCode errCode) proxy->HandleClear(); session_->BundleExtTimerStop(callerName); IServiceReverse::Scenario scenario = session_->GetScenario(); + HILOGI("Will notify clone, the scenario is: %d", scenario); if (scenario == IServiceReverse::Scenario::BACKUP) { session_->GetServiceReverseProxy()->IncrementalBackupOnBundleFinished(errCode, callerName); } else if (scenario == IServiceReverse::Scenario::RESTORE) { -- Gitee From 59215ece5b4022fee7d9876d2034c74cc590baa2 Mon Sep 17 00:00:00 2001 From: "yaoruozi1@huawei.com" Date: Thu, 28 Mar 2024 15:04:50 +0800 Subject: [PATCH 2/2] fix backup tools failed cases Signed-off-by: yaoruozi1@huawei.com --- services/backup_sa/src/module_ipc/service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/backup_sa/src/module_ipc/service.cpp b/services/backup_sa/src/module_ipc/service.cpp index 8a4eabf6a..2b1d8a9f9 100644 --- a/services/backup_sa/src/module_ipc/service.cpp +++ b/services/backup_sa/src/module_ipc/service.cpp @@ -497,7 +497,7 @@ ErrCode Service::AppDone(ErrCode errCode) proxy->HandleClear(); session_->BundleExtTimerStop(callerName); IServiceReverse::Scenario scenario = session_->GetScenario(); - + HILOGI("Will notify clone, the scenario is: %d", scenario); if (scenario == IServiceReverse::Scenario::BACKUP) { session_->GetServiceReverseProxy()->BackupOnBundleFinished(errCode, callerName); } else if (scenario == IServiceReverse::Scenario::RESTORE) { -- Gitee