]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Minor changes to CuckooTableBuilder rocksdb-3.3 v3.3
authorRadheshyam Balasundaram <rbs@fb.com>
Tue, 29 Jul 2014 00:14:25 +0000 (17:14 -0700)
committerRadheshyam Balasundaram <rbs@fb.com>
Tue, 29 Jul 2014 00:14:25 +0000 (17:14 -0700)
commit91c01485d1c0a4675e24b39ad2adb950a3a468e6
tree16f5b68c80728b2647d87664c114fcd842c886b0
parentf04356e660d0607548161657fb99750ba8fd9c52
Minor changes to CuckooTableBuilder

Summary:
- Copy the key and value to in-memory hash table during Add operation. Also modified cuckoo_table_reader_test to use this.
- Store only the user_key in in-memory hash table if it is last level file.
- Handle Carryover while chosing unused key in Finish() method in case unused key was never found before Finish() call.

Test Plan:
cuckoo_table_reader_test --enable_perf
cuckoo_table_builder_test
valgrind_check
asan_check

Reviewers: sdong, yhchiang, igor, ljin

Reviewed By: ljin

Subscribers: leveldb

Differential Revision: https://reviews.facebook.net/D20715
table/cuckoo_table_builder.cc
table/cuckoo_table_builder.h
table/cuckoo_table_reader_test.cc