]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
[RocksDB] Make block based table hash index more adaptive rocksdb-3.2 v3.2
authorHaobo Xu <haobo@fb.com>
Thu, 19 Jun 2014 22:32:31 +0000 (15:32 -0700)
committerHaobo Xu <haobo@fb.com>
Thu, 19 Jun 2014 23:40:32 +0000 (16:40 -0700)
commit7a9dd5f214fa2581f0b230c05f6d2ef1cd1cd19c
treec49d0234e2d319a0cffe2d64a575f97b292e1c34
parent4f5ccfd1796d34f80121b2a6772a230fc6e6ba1d
[RocksDB] Make block based table hash index more adaptive

Summary: Currently, RocksDB returns error if a db written with prefix hash index, is later opened without providing a prefix extractor. This is uncessarily harsh. Without a prefix extractor, we could always fallback to the normal binary index.

Test Plan: unit test, also manually veried LOG that fallback did occur.

Reviewers: sdong, ljin

Reviewed By: ljin

Subscribers: leveldb

Differential Revision: https://reviews.facebook.net/D19191
db/db_test.cc
table/block_based_table_reader.cc