Signed-off-by: yangliu <yangliu178@huawei.com>
This commit is contained in:
yangliu 2024-11-18 23:04:24 +08:00
parent 0e357ad289
commit 1e1cc7e139
2 changed files with 5 additions and 3 deletions

View File

@ -816,7 +816,7 @@ bool KVDBServiceImpl::IsTripleAutoLaunch(
if (storeMeta.bundleName == Bootstrap::GetInstance().GetProcessLabel()) {
param.userId = storeMeta.user;
}
SetAutoLaunchParam(option, param);
SetAutoLaunchParam(option, param, );
isFindIdentifier = true;
return isTripleIdentifierEqual;
}
@ -825,7 +825,8 @@ bool KVDBServiceImpl::IsTripleAutoLaunch(
return false;
}
void KVDBServiceImpl::SetAutoLaunchParam(DistributedDB::AutoLaunchOption &option, DistributedDB::AutoLaunchParam &param)
void KVDBServiceImpl::SetAutoLaunchParam(DistributedDB::AutoLaunchOption &option,
DistributedDB::AutoLaunchParam &param, StoreMetaData &storeMeta)
{
option.schema = storeMeta.schema;
option.createDirByStoreIdOnly = true;

View File

@ -156,7 +156,8 @@ private:
StoreMetaData &meta, bool &isFindIdentifier);
int32_t DoTripleAutoLaunch(StoreMetaData &meta);
DistributedDB::SecurityOption ConvertSecurity(int securityLevel);
void SetAutoLaunchParam(DistributedDB::AutoLaunchOption &option, DistributedDB::AutoLaunchParam &param);
void SetAutoLaunchParam(DistributedDB::AutoLaunchOption &option, DistributedDB::AutoLaunchParam &param,
StoreMetaData &storeMeta);
Status ConvertDbStatusNative(DBStatus status);
static Factory factory_;
ConcurrentMap<uint32_t, SyncAgent> syncAgents_;