summaryrefslogtreecommitdiffstats
path: root/include/shard/Alias.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/shard/Alias.h')
-rw-r--r--include/shard/Alias.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/shard/Alias.h b/include/shard/Alias.h
index 72147d7..8fe70a5 100644
--- a/include/shard/Alias.h
+++ b/include/shard/Alias.h
@@ -25,21 +25,20 @@
using psudb::CACHELINE_SIZE;
using psudb::BloomFilter;
-using psudb::PriorityQueue;
-using psudb::queue_record;
using psudb::byte;
namespace de {
-static thread_local size_t wss_cancelations = 0;
-
template <WeightedRecordInterface R>
class Alias {
+public:
+ typedef R RECORD;
private:
typedef decltype(R::key) K;
typedef decltype(R::value) V;
typedef decltype(R::weight) W;
+
public:
Alias(BufferView<R> buffer)
: m_data(nullptr)
@@ -71,7 +70,7 @@ public:
}
}
- Alias(std::vector<Alias*> &shards)
+ Alias(std::vector<Alias*> const &shards)
: m_data(nullptr)
, m_alias(nullptr)
, m_total_weight(0)
@@ -167,7 +166,6 @@ public:
size_t min = 0;
size_t max = m_reccnt - 1;
- const char * record_key;
while (min < max) {
size_t mid = (min + max) / 2;