fix error

Signed-off-by: zuojiangjiang <zuojiangjiang@huawei.com>
This commit is contained in:
zuojiangjiang 2022-10-21 19:05:48 +08:00
parent 6778a1227f
commit 58a710dd40

View File

@ -135,12 +135,11 @@ Status KVDBServiceImpl::Delete(const AppId &appId, const StoreId &storeId)
syncAgent.observers_.erase(storeId);
return true;
});
storeCache_.CloseStore(tokenId, storeId);
MetaDataManager::GetInstance().DelMeta(metaData.GetKey());
MetaDataManager::GetInstance().DelMeta(metaData.GetSecretKey(), true);
MetaDataManager::GetInstance().DelMeta(metaData.GetStrategyKey());
MetaDataManager::GetInstance().DelMeta(metaData.GetKeyLocal(), true);
storeCache_.CloseStore(tokenId, storeId);
ZLOGD("appId:%{public}s storeId:%{public}s instanceId:%{public}d", appId.appId.c_str(), storeId.storeId.c_str(),
metaData.instanceId);
return SUCCESS;