Skip to content

Commit

Permalink
use new db file in next try.
Browse files Browse the repository at this point in the history
Signed-off-by: Rahman Abber Tahir <[email protected]>
  • Loading branch information
Rahman Abber Tahir committed Nov 17, 2023
1 parent 76a5f0d commit cdd2f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libLocalDescriptorCache/DescDbProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cdd2f9f

Please sign in to comment.