mirror of
https://gitee.com/openharmony/distributeddatamgr_datamgr_service
synced 2024-11-23 06:50:35 +00:00
update
Signed-off-by: yangliu <yangliu178@huawei.com>
This commit is contained in:
parent
b36487d088
commit
1fb6abdaf4
@ -418,7 +418,7 @@ bool KvStoreDataService::CompareTripleIdentifier(const std::string &accountId, c
|
||||
}
|
||||
|
||||
bool KvStoreDataService::ResolveAutoLaunchParamByIdentifier(
|
||||
const std::string &identifier, DistributedDB::AutoLaunchParam ¶m, StoreMetaData &metaDate, bool &isTriple)
|
||||
const std::string &identifier, DistributedDB::AutoLaunchParam ¶m, StoreMetaData &metaData, bool &isTriple)
|
||||
{
|
||||
std::vector<StoreMetaData> entries;
|
||||
std::string localDeviceId = DmAdapter::GetInstance().GetLocalDevice().uuid;
|
||||
@ -440,8 +440,8 @@ bool KvStoreDataService::ResolveAutoLaunchParamByIdentifier(
|
||||
DistributedDB::KvStoreDelegateManager::GetKvStoreIdentifier("", storeMeta.appId, storeMeta.storeId, true);
|
||||
if (isTripleIdentifierEqual && storeMeta.bundleName != Bootstrap::GetInstance().GetProcessLabel()) {
|
||||
isTriple = isTripleIdentifierEqual;
|
||||
metaDate = storeMeta;
|
||||
metaDate.account = accountId;
|
||||
metaData = storeMeta;
|
||||
metaData.account = accountId;
|
||||
}
|
||||
if (identifier == itemDualIdentifier || isTripleIdentifierEqual) {
|
||||
ZLOGI("identifier find");
|
||||
|
@ -167,7 +167,7 @@ private:
|
||||
Status AppExit(pid_t uid, pid_t pid, uint32_t token, const AppId &appId);
|
||||
|
||||
bool ResolveAutoLaunchParamByIdentifier(
|
||||
const std::string &identifier, DistributedDB::AutoLaunchParam ¶m, StoreMetaData &metaDate, bool &isTriple);
|
||||
const std::string &identifier, DistributedDB::AutoLaunchParam ¶m, StoreMetaData &metaData, bool &isTriple);
|
||||
|
||||
void LoadConfigs();
|
||||
|
||||
|
@ -192,7 +192,6 @@ HWTEST_F(KvStoreDataServiceTest, ResolveAutoLaunchParamByIdentifier001, TestSize
|
||||
std::string identifier = "kvstoredataservicetest";
|
||||
DistributedDB::AutoLaunchParam param;
|
||||
StoreMetaData meta;
|
||||
bool isTriple = false;
|
||||
auto status = kvStoreDataServiceTest.ResolveAutoLaunchParamByIdentifier(identifier, param, meta, false);
|
||||
EXPECT_EQ(status, SUCCESS);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user