From 5b01c4f511bcc0510117f7cc34dab35a44993936 Mon Sep 17 00:00:00 2001 From: louzhihao Date: Wed, 21 Aug 2024 16:31:23 +0800 Subject: [PATCH] backup ability Signed-off-by: louzhihao Change-Id: Ida27cbc37bf247f4634c4eefdb9fb76e1b0eceb4 --- .../service/data_share/common/rdb_delegate.cpp | 4 ---- .../service/data_share/data_share_service_impl.cpp | 2 -- 2 files changed, 6 deletions(-) diff --git a/services/distributeddataservice/service/data_share/common/rdb_delegate.cpp b/services/distributeddataservice/service/data_share/common/rdb_delegate.cpp index effbf8ed2..358748d42 100644 --- a/services/distributeddataservice/service/data_share/common/rdb_delegate.cpp +++ b/services/distributeddataservice/service/data_share/common/rdb_delegate.cpp @@ -95,7 +95,6 @@ RdbDelegate::RdbDelegate(const DistributedData::StoreMetaData &meta, int version RdbStoreConfig config = GetConfig(meta, registerFunction); DefaultOpenCallback callback; store_ = RdbHelper::GetRdbStore(config, version, callback, errCode_); - ZLOGE("MagicLog RdbDelegate: %{public}s .haMode:%{public}d. errcode:%{public}d", bundleName_.c_str(), haMode_, errCode_); if (errCode_ != E_OK) { ZLOGW("GetRdbStore failed, errCode is %{public}d, dir is %{public}s", errCode_, DistributedData::Anonymous::Change(meta.dataDir).c_str()); @@ -122,7 +121,6 @@ void RdbDelegate::TryAndSend(int errCode) int64_t RdbDelegate::Insert(const std::string &tableName, const DataShareValuesBucket &valuesBucket) { - ZLOGE("MagicLog RdbDelegate::Insert"); if (store_ == nullptr) { ZLOGE("store is null"); return 0; @@ -130,7 +128,6 @@ int64_t RdbDelegate::Insert(const std::string &tableName, const DataShareValuesB int64_t rowId = 0; ValuesBucket bucket = RdbDataShareAdapter::RdbUtils::ToValuesBucket(valuesBucket); int ret = store_->Insert(rowId, tableName, bucket); - ZLOGE("MagicLog Insert.bundle:%{public}s", bundleName_.c_str()); if (ret != E_OK) { ZLOGE("Insert failed %{public}s %{public}d", tableName.c_str(), ret); RADAR_REPORT(__FUNCTION__, RadarReporter::SILENT_ACCESS, RadarReporter::PROXY_CALL_RDB, @@ -192,7 +189,6 @@ std::pair RdbDelegate::InsertEx(const std::string &tableName, int64_t rowId = 0; ValuesBucket bucket = RdbDataShareAdapter::RdbUtils::ToValuesBucket(valuesBucket); int ret = store_->Insert(rowId, tableName, bucket); - ZLOGE("MagicLog RdbDelegate InsertEx.bundle:%{public}s. errcode: %{public}d", bundleName_.c_str(), ret); if (ret != E_OK) { ZLOGE("Insert failed %{public}s %{public}d", tableName.c_str(), ret); RADAR_REPORT(__FUNCTION__, RadarReporter::SILENT_ACCESS, RadarReporter::PROXY_CALL_RDB, diff --git a/services/distributeddataservice/service/data_share/data_share_service_impl.cpp b/services/distributeddataservice/service/data_share/data_share_service_impl.cpp index f003afef8..e9b65f406 100644 --- a/services/distributeddataservice/service/data_share/data_share_service_impl.cpp +++ b/services/distributeddataservice/service/data_share/data_share_service_impl.cpp @@ -99,7 +99,6 @@ DataShareServiceImpl::Factory::~Factory() {} int32_t DataShareServiceImpl::Insert(const std::string &uri, const DataShareValuesBucket &valuesBucket) { ZLOGD("Insert enter."); - ZLOGE("MagicLog DataShareServiceImpl::Insert"); XCollie xcollie(std::string(LOG_TAG) + "::" + std::string(__FUNCTION__), HiviewDFX::XCOLLIE_FLAG_LOG | HiviewDFX::XCOLLIE_FLAG_RECOVERY); if (GetSilentProxyStatus(uri, false) != E_OK) { @@ -122,7 +121,6 @@ std::pair DataShareServiceImpl::InsertEx(const std::string &ur const DataShareValuesBucket &valuesBucket) { ZLOGD("InsertEx enter."); - ZLOGE("MagicLog DataShareServiceImpl::InsertEx"); XCollie xcollie(__FUNCTION__, HiviewDFX::XCOLLIE_FLAG_LOG | HiviewDFX::XCOLLIE_FLAG_RECOVERY); if (GetSilentProxyStatus(uri, false) != E_OK) { ZLOGW("silent proxy disable, %{public}s", URIUtils::Anonymous(uri).c_str());