From 51f9e71d877f058fe20920810d23a9e0cd9c1057 Mon Sep 17 00:00:00 2001 From: guochao Date: Fri, 15 Nov 2024 10:48:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=B8=80=E8=87=B4=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: guochao --- frameworks/native/rdb/src/rdb_store_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/native/rdb/src/rdb_store_manager.cpp b/frameworks/native/rdb/src/rdb_store_manager.cpp index b71bab3c8..225975368 100644 --- a/frameworks/native/rdb/src/rdb_store_manager.cpp +++ b/frameworks/native/rdb/src/rdb_store_manager.cpp @@ -66,11 +66,11 @@ std::shared_ptr RdbStoreManager::GetStoreFromCache(const RdbStoreC } std::shared_ptr 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",