From 076e104b8672924c3d80cd1da2fdb5ebee1766ac Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Thu, 24 Aug 2023 17:00:31 -0400 Subject: Migrated over to using psudb-common utilities/headers --- include/framework/MutableBuffer.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'include/framework/MutableBuffer.h') diff --git a/include/framework/MutableBuffer.h b/include/framework/MutableBuffer.h index 9eea5c8..b79fc02 100644 --- a/include/framework/MutableBuffer.h +++ b/include/framework/MutableBuffer.h @@ -16,15 +16,16 @@ #include #include -#include "util/base.h" +#include "psu-util/alignment.h" #include "util/bf_config.h" -#include "ds/BloomFilter.h" -#include "ds/Alias.h" -#include "util/timer.h" +#include "psu-ds/BloomFilter.h" +#include "psu-ds/Alias.h" +#include "psu-util/timer.h" #include "framework/RecordInterface.h" -namespace de { +using psudb::CACHELINE_SIZE; +namespace de { template class MutableBuffer { @@ -37,7 +38,7 @@ public: m_data = (Wrapped*) std::aligned_alloc(CACHELINE_SIZE, aligned_buffersize); m_tombstone_filter = nullptr; if (max_tombstone_cap > 0) { - m_tombstone_filter = new BloomFilter(BF_FPR, max_tombstone_cap, BF_HASH_FUNCS); + m_tombstone_filter = new psudb::BloomFilter(BF_FPR, max_tombstone_cap, BF_HASH_FUNCS); } } @@ -168,7 +169,7 @@ private: size_t m_tombstone_cap; Wrapped* m_data; - BloomFilter* m_tombstone_filter; + psudb::BloomFilter* m_tombstone_filter; alignas(64) std::atomic m_tombstonecnt; alignas(64) std::atomic m_reccnt; -- cgit v1.2.3