Signed-off-by: yangliu <yangliu178@huawei.com>
This commit is contained in:
yangliu 2024-11-14 10:35:10 +08:00
parent b36487d088
commit 1fb6abdaf4
3 changed files with 4 additions and 5 deletions

View File

@ -418,7 +418,7 @@ bool KvStoreDataService::CompareTripleIdentifier(const std::string &accountId, c
}
bool KvStoreDataService::ResolveAutoLaunchParamByIdentifier(
const std::string &identifier, DistributedDB::AutoLaunchParam &param, StoreMetaData &metaDate, bool &isTriple)
const std::string &identifier, DistributedDB::AutoLaunchParam &param, 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");

View File

@ -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 &param, StoreMetaData &metaDate, bool &isTriple);
const std::string &identifier, DistributedDB::AutoLaunchParam &param, StoreMetaData &metaData, bool &isTriple);
void LoadConfigs();

View File

@ -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);
}