diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2023-08-24 17:00:31 -0400 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2023-08-24 17:00:31 -0400 |
| commit | 076e104b8672924c3d80cd1da2fdb5ebee1766ac (patch) | |
| tree | e33a8081c61899c5d1a471401605e55716ca3ff4 /include/framework/MutableBuffer.h | |
| parent | 1cb522b36382381ef3f1494f24b0c6a98f8843a9 (diff) | |
| download | dynamic-extension-076e104b8672924c3d80cd1da2fdb5ebee1766ac.tar.gz | |
Migrated over to using psudb-common utilities/headers
Diffstat (limited to 'include/framework/MutableBuffer.h')
| -rw-r--r-- | include/framework/MutableBuffer.h | 15 |
1 files changed, 8 insertions, 7 deletions
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 <algorithm> #include <type_traits> -#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 <RecordInterface R> class MutableBuffer { @@ -37,7 +38,7 @@ public: m_data = (Wrapped<R>*) std::aligned_alloc(CACHELINE_SIZE, aligned_buffersize); m_tombstone_filter = nullptr; if (max_tombstone_cap > 0) { - m_tombstone_filter = new BloomFilter<R>(BF_FPR, max_tombstone_cap, BF_HASH_FUNCS); + m_tombstone_filter = new psudb::BloomFilter<R>(BF_FPR, max_tombstone_cap, BF_HASH_FUNCS); } } @@ -168,7 +169,7 @@ private: size_t m_tombstone_cap; Wrapped<R>* m_data; - BloomFilter<R>* m_tombstone_filter; + psudb::BloomFilter<R>* m_tombstone_filter; alignas(64) std::atomic<size_t> m_tombstonecnt; alignas(64) std::atomic<uint32_t> m_reccnt; |