update frameworks/native/rdb/src/sqlite_connection.cpp.

Signed-off-by: 张琼洁 <zhangqiongjie4@huawei.com>
This commit is contained in:
张琼洁 2024-10-30 07:22:26 +00:00 committed by Gitee
parent 821a3b849f
commit 5dc67c4faf
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -85,8 +85,10 @@ std::pair<int32_t, std::shared_ptr<Connection>> SqliteConnection::Create(const R
int32_t SqliteConnection::Delete(const RdbStoreConfig &config)
{
auto path = config.GetPath();
auto slavePath = SqliteUtils::GetSlavePath(path);
for (auto &suffix : FILE_SUFFIXES) {
SqliteUtils::DeleteFile(path + suffix.suffix_);
SqliteUtils::DeleteFile(slavePath + suffix.suffix_);
}
return E_OK;
}