From cdd2f9fe77d3a509dc94ac9896ca5d678b54d223 Mon Sep 17 00:00:00 2001 From: Rahman Abber Tahir Date: Fri, 17 Nov 2023 16:59:02 +0100 Subject: [PATCH] use new db file in next try. Signed-off-by: Rahman Abber Tahir --- src/libLocalDescriptorCache/DescDbProxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libLocalDescriptorCache/DescDbProxy.cpp b/src/libLocalDescriptorCache/DescDbProxy.cpp index 7a5b4a3..9cb55e2 100644 --- a/src/libLocalDescriptorCache/DescDbProxy.cpp +++ b/src/libLocalDescriptorCache/DescDbProxy.cpp @@ -331,7 +331,7 @@ void DescDbProxy::getDescriptors(const std::string &f_hostAddress) localDescDb::DescriptorDb newDbFile; //new file to ensure there are no side-effects from last parsing failure. std::filesystem::remove(cacheFilePath); //remove cache file if failed and try again. - if( getDbFileFromCacheFile(cacheFilePath, dbFile) == false ) + if( getDbFileFromCacheFile(cacheFilePath, newDbFile) == false ) { std::cerr << "Failed to parse local Descriptor Cache." << std::endl; exit(EXIT_FAILURE);