This commit is contained in:
jakani24
2024-02-07 16:27:52 +01:00
parent e22e586895
commit b5b3bc06a1
30 changed files with 301 additions and 8 deletions

View File

@@ -89,9 +89,11 @@ int search_hash(const std::string& dbname_, const std::string& hash_, const std:
thread_local std::string filepath (filepath_);
thread_local auto fileIter = fileHandles.find(dbname);
if (fileIter == fileHandles.end()) {
if (fileIter == fileHandles.end() and dbname_.find("c:.jdbf") == std::string::npos) {
log(LOGLEVEL::ERR, "[search_hash()]: File mapping not initialized for ", dbname);
return 2;
}else if (fileIter == fileHandles.end()) {
return 2;
}
// Use fileData for subsequent searches