rocksdb/table
Kai Liu 1f8ade6bd6 Fix a bug in table builder
Summary:
In talbe.cc, when reading the metablock, it uses BytewiseComparator();
However in table_builder.cc, we use r->options.comparator. After tracing
the creation of r->options.comparator, I found this comparator is an
InternalKeyComparator, which wraps the user defined comparator(details
can be found in DBImpl::SanitizeOptions().

I encountered this problem when adding metadata about "bloom filter"
before. With different comparator, we may fail to do the binary sort.

Current code works well since there is only one entry in meta block.

Test Plan:
make all check

I've also tested this change in https://reviews.facebook.net/D8283 before.

Reviewers: dhruba, haobo

CC: leveldb

Differential Revision: https://reviews.facebook.net/D13335
2013-10-07 18:53:19 -07:00
..
block_builder.cc Fix a bug in table builder 2013-10-07 18:53:19 -07:00
block_builder.h Fix a bug in table builder 2013-10-07 18:53:19 -07:00
block_test.cc Change namespace from leveldb to rocksdb 2013-10-04 11:59:26 -07:00
block.cc Change namespace from leveldb to rocksdb 2013-10-04 11:59:26 -07:00
block.h Migrate names of properties from 'leveldb' prefix to 'rocksdb' prefix. 2013-10-06 00:14:26 -07:00
filter_block_test.cc Change namespace from leveldb to rocksdb 2013-10-04 11:59:26 -07:00
filter_block.cc Change namespace from leveldb to rocksdb 2013-10-04 11:59:26 -07:00
filter_block.h Migrate names of properties from 'leveldb' prefix to 'rocksdb' prefix. 2013-10-06 00:14:26 -07:00
format.cc Change namespace from leveldb to rocksdb 2013-10-04 11:59:26 -07:00
format.h Migrate names of properties from 'leveldb' prefix to 'rocksdb' prefix. 2013-10-06 00:14:26 -07:00
iter_heap.h Migrate names of properties from 'leveldb' prefix to 'rocksdb' prefix. 2013-10-06 00:14:26 -07:00
iterator_wrapper.h Migrate names of properties from 'leveldb' prefix to 'rocksdb' prefix. 2013-10-06 00:14:26 -07:00
iterator.cc Change namespace from leveldb to rocksdb 2013-10-04 11:59:26 -07:00
merger.cc Change namespace from leveldb to rocksdb 2013-10-04 11:59:26 -07:00
merger.h Migrate names of properties from 'leveldb' prefix to 'rocksdb' prefix. 2013-10-06 00:14:26 -07:00
table_builder.cc Fix a bug in table builder 2013-10-07 18:53:19 -07:00
table_test.cc Migrate names of properties from 'leveldb' prefix to 'rocksdb' prefix. 2013-10-06 00:14:26 -07:00
table.cc Change namespace from leveldb to rocksdb 2013-10-04 11:59:26 -07:00
table.h Migrate names of properties from 'leveldb' prefix to 'rocksdb' prefix. 2013-10-06 00:14:26 -07:00
two_level_iterator.cc Change namespace from leveldb to rocksdb 2013-10-04 11:59:26 -07:00
two_level_iterator.h Migrate names of properties from 'leveldb' prefix to 'rocksdb' prefix. 2013-10-06 00:14:26 -07:00