diff --git a/src/import_manager.cc b/src/import_manager.cc index 7a139c03..11b13f29 100644 --- a/src/import_manager.cc +++ b/src/import_manager.cc @@ -1,8 +1,8 @@ #include "import_manager.h" bool ImportManager::TryMarkDependencyImported(const std::string& path) { - std::lock_guard lock(depdency_mutex_); - return depdency_imported_.insert(path).second; + std::lock_guard lock(dependency_mutex_); + return dependency_imported_.insert(path).second; } bool ImportManager::StartQueryDbImport(const std::string& path) { diff --git a/src/import_manager.h b/src/import_manager.h index 3ec607c7..57dc7ffe 100644 --- a/src/import_manager.h +++ b/src/import_manager.h @@ -24,6 +24,6 @@ struct ImportManager { std::unordered_set querydb_processing_; // TODO: use std::shared_mutex so we can have multiple readers. - std::mutex depdency_mutex_; - std::unordered_set depdency_imported_; + std::mutex dependency_mutex_; + std::unordered_set dependency_imported_; }; \ No newline at end of file