Signed-off-by: yangliu <yangliu178@huawei.com>
This commit is contained in:
yangliu 2024-08-24 17:56:00 +08:00
parent 24a86f6751
commit 186f1aabe4
2 changed files with 5 additions and 3 deletions

View File

@ -400,7 +400,8 @@ bool KvStoreDataService::CompareTripleIdentifier(const std::string &accountId, c
{
std::vector<std::string> accountIds { accountId, "ohosAnonymousUid", "default" };
for (auto &id : accountIds) {
auto trueDualTuple = AppIdMappingConfigManager::GetInstance().FindTrueDualTuple(storeMeta.appId, storeMeta.user);
auto trueDualTuple =
AppIdMappingConfigManager::GetInstance().FindTrueDualTuple(storeMeta.appId,storeMeta.user);
const std::string &itemTripleIdentifier =
DistributedDB::KvStoreDelegateManager::GetKvStoreIdentifier(id, trueDualTuple.first,
storeMeta.storeId, false);
@ -408,7 +409,7 @@ bool KvStoreDataService::CompareTripleIdentifier(const std::string &accountId, c
ZLOGI("find triple identifier,storeId:%{public}s,id:%{public}s",
Anonymous::Change(storeMeta.storeId).c_str(), Anonymous::Change(id).c_str());
return true;
}
}
}
return false;
}

View File

@ -172,7 +172,8 @@ private:
void LoadConfigs();
bool CompareTripleIdentifier(const std::string &accountId, const std::string &identifier, const StoreMetaData &storeMeta);
bool CompareTripleIdentifier(const std::string &accountId, const std::string &identifier,
const StoreMetaData &storeMeta);
static DistributedDB::SecurityOption ConvertSecurity(int securityLevel);
static Status InitNbDbOption(const Options &options, const std::vector<uint8_t> &cipherKey,
DistributedDB::KvStoreNbDelegate::Option &dbOption);