mirror of
https://gitee.com/openharmony/distributeddatamgr_datamgr_service
synced 2024-11-27 09:01:45 +00:00
update
Signed-off-by: yangliu <yangliu178@huawei.com>
This commit is contained in:
parent
24a86f6751
commit
186f1aabe4
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user