diff options
Diffstat (limited to 'include/shard/VPTree.h')
| -rw-r--r-- | include/shard/VPTree.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/shard/VPTree.h b/include/shard/VPTree.h index 6a976f7..7376d4c 100644 --- a/include/shard/VPTree.h +++ b/include/shard/VPTree.h @@ -194,9 +194,14 @@ private: } void build_map() { - for (size_t i=0; i<m_reccnt; i++) { - m_lookup_map.insert({m_data[i].rec, i}); + // FIXME: Will need to account for tombstones here too. Under + // tombstones, it is technically possible for two otherwise identical + // instances of the same record to exist within the same shard, so + // long as one of them is a tombstone. Because the table is currently + // using the unwrapped records for the key, it isn't possible for it + // to handle this case right now. + m_lookup_map.insert({m_data[i].rec, i}); } } |