From 60ff39b9091c1c465256032a264a4ff812e16fcc Mon Sep 17 00:00:00 2001 From: wangtiantian Date: Thu, 27 Jul 2023 17:25:38 +0800 Subject: [PATCH] IssueNo:#I7OH27 Description:code opatim Sig:SIG_ApplicaitonFramework Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: wangtiantian --- services/dbms/include/distributed_data_storage.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/services/dbms/include/distributed_data_storage.h b/services/dbms/include/distributed_data_storage.h index 11fd926..fd2840f 100644 --- a/services/dbms/include/distributed_data_storage.h +++ b/services/dbms/include/distributed_data_storage.h @@ -25,6 +25,11 @@ namespace OHOS { namespace AppExecFwk { +namespace { +// distributed database +static const char* APP_ID = "bundle_manager_service"; +static const char* DISTRIBUTE_DATA_STORE_ID = "distribute_bundle_datas"; +} class DistributedDataStorage { public: DistributedDataStorage(); @@ -52,8 +57,8 @@ private: static std::mutex mutex_; static std::shared_ptr instance_; - const DistributedKv::AppId appId_ {Constants::APP_ID}; - const DistributedKv::StoreId storeId_ {Constants::DISTRIBUTE_DATA_STORE_ID}; + const DistributedKv::AppId appId_ {APP_ID}; + const DistributedKv::StoreId storeId_ {DISTRIBUTE_DATA_STORE_ID}; DistributedKv::DistributedKvDataManager dataManager_; std::shared_ptr kvStorePtr_; mutable std::mutex kvStorePtrMutex_; -- Gitee