代码一致性

Signed-off-by: guochao <guochao76@huawei.com>
This commit is contained in:
guochao 2024-11-15 10:48:42 +08:00
parent 4e9eabfdb4
commit 51f9e71d87

View File

@ -66,11 +66,11 @@ std::shared_ptr<RdbStoreImpl> RdbStoreManager::GetStoreFromCache(const RdbStoreC
}
std::shared_ptr<RdbStoreImpl> rdbStore = it->second.lock();
if (rdbStore == nullptr) {
storeCache_.erase(path);
storeCache_.erase(it);
return nullptr;
}
if (!(rdbStore->GetConfig() == config)) {
storeCache_.erase(path);
storeCache_.erase(it);
LOG_INFO("app[%{public}s:%{public}s] path[%{public}s]"
" cfg[%{public}d,%{public}d,%{public}d,%{public}d,%{public}d,%{public}d,%{public}d,%{public}s]"
" %{public}s",