summaryrefslogtreecommitdiff
path: root/memtable
diff options
context:
space:
mode:
authorPeter Dillinger <peterd@fb.com>2020-09-28 11:33:31 -0700
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>2020-09-28 11:35:00 -0700
commit08552b19d3276c75147f84b9a8e217e2dec7e897 (patch)
treeea05949bb541e64562ee6e7bb056d363f416f2a5 /memtable
parent8f8264032dbf8667b0792f683b1221a74cf8e4bf (diff)
Genericize and clean up FastRange (#7436)
Summary: A generic algorithm in progress depends on a templatized version of fastrange, so this change generalizes it and renames it to fit our style guidelines, FastRange32, FastRange64, and now FastRangeGeneric. Pull Request resolved: https://github.com/facebook/rocksdb/pull/7436 Test Plan: added a few more test cases Reviewed By: jay-zhuang Differential Revision: D23958153 Pulled By: pdillinger fbshipit-source-id: 8c3b76101653417804997e5f076623a25586f3e8
Diffstat (limited to 'memtable')
-rw-r--r--memtable/hash_linklist_rep.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/memtable/hash_linklist_rep.cc b/memtable/hash_linklist_rep.cc
index 3698812c5..765ca9cbb 100644
--- a/memtable/hash_linklist_rep.cc
+++ b/memtable/hash_linklist_rep.cc
@@ -218,7 +218,7 @@ class HashLinkListRep : public MemTableRep {
}
size_t GetHash(const Slice& slice) const {
- return fastrange64(GetSliceNPHash64(slice), bucket_size_);
+ return GetSliceRangedNPHash(slice, bucket_size_);
}
Pointer* GetBucket(size_t i) const {