diff --git a/src/common/container/cuckoo_map.cpp b/src/common/container/cuckoo_map.cpp index 9b8557498f5..e4679686b97 100644 --- a/src/common/container/cuckoo_map.cpp +++ b/src/common/container/cuckoo_map.cpp @@ -14,7 +14,6 @@ #include #include "common/container/cuckoo_map.h" -#include "common/container/lock_free_queue.h" #include "common/internal_types.h" #include "common/item_pointer.h" #include "common/logger.h" @@ -33,6 +32,9 @@ class IndexMetric; class StatementCache; +template +class LockFreeQueue; + CUCKOO_MAP_TEMPLATE_ARGUMENTS CUCKOO_MAP_TYPE::CuckooMap() {} @@ -128,6 +130,6 @@ template class CuckooMap; // Used in TransactionLevelGCManager template class CuckooMap>>; + std::shared_ptr>>; } // namespace peloton diff --git a/src/gc/transaction_level_gc_manager.cpp b/src/gc/transaction_level_gc_manager.cpp index 58220c43950..79f3198a3ac 100644 --- a/src/gc/transaction_level_gc_manager.cpp +++ b/src/gc/transaction_level_gc_manager.cpp @@ -243,7 +243,7 @@ uint32_t TransactionLevelGCManager::Unlink(const uint32_t &thread_id, if (txn_ctx->GetEpochId() <= expired_eid) { // since this txn's epochId is <= the global expired epoch id - // no active transactions can read the version. Asa result, + // no active transactions can read the version. As a result, // we can delete remove all of its garbage tuples from the indexes // unlink versions from version chain and indexes