rocksdb/util
Lei Jin 8d007b4aaf Consolidate SliceTransform object ownership
Summary:
(1) Fix SanitizeOptions() to also check HashLinkList. The current
dynamic case just happens to work because the 2 classes have the same
layout.
(2) Do not delete SliceTransform object in HashSkipListFactory and
HashLinkListFactory destructor. Reason: SanitizeOptions() enforces
prefix_extractor and SliceTransform to be the same object when
Hash**Factory is used. This makes the behavior strange: when
Hash**Factory is used, prefix_extractor will be released by RocksDB. If
other memtable factory is used, prefix_extractor should be released by
user.

Test Plan: db_bench && make asan_check

Reviewers: haobo, igor, sdong

Reviewed By: igor

CC: leveldb, dhruba

Differential Revision: https://reviews.facebook.net/D16587
2014-03-10 12:56:46 -07:00
..
arena.cc Clean up arena API 2014-01-30 22:10:10 -08:00
arena.h Add a hash-index component for block 2014-03-03 21:11:49 -08:00
arena_test.cc Clean up arena API 2014-01-30 22:10:10 -08:00
auto_roll_logger.cc Allow user to specify log level for info_log 2014-03-05 14:54:31 -08:00
auto_roll_logger.h Allow user to specify log level for info_log 2014-03-05 14:54:31 -08:00
auto_roll_logger_test.cc Fix some compilation bugs in different platforms 2014-02-27 22:20:17 -08:00
autovector.h
autovector_test.cc
bit_set.h
blob_store.cc IOError cleanup 2014-02-12 11:42:54 -08:00
blob_store.h
blob_store_test.cc
bloom.cc
bloom_test.cc
build_version.h
cache.cc Merge branch 'master' into performance 2014-01-28 10:35:55 -08:00
cache_test.cc
coding.cc Merge branch 'master' into performance 2014-01-28 10:35:55 -08:00
coding.h Merge branch 'master' into performance 2014-01-28 10:35:55 -08:00
coding_test.cc Misc cleanup on performance branch 2014-01-17 14:26:29 -08:00
comparator.cc
crc32c.cc crc32c: choose function in static initialization 2014-02-04 19:13:57 -08:00
crc32c.h
crc32c_test.cc
dynamic_bloom.cc Optimize MayContainHash() 2014-01-14 22:03:57 -08:00
dynamic_bloom.h Misc cleanup on performance branch 2014-01-17 14:26:29 -08:00
dynamic_bloom_test.cc
env.cc [RocksDB] LogBuffer Cleanup 2014-03-10 11:05:44 -07:00
env_hdfs.cc Enable log info with different levels. 2014-02-26 14:41:28 -08:00
env_posix.cc Modify the compile error about ftruncate() 2014-03-08 02:14:34 +09:00
env_test.cc Truncate unused space on PosixWritableFile::Close() 2014-03-06 15:59:27 -08:00
filelock_test.cc
filter_policy.cc
hash.cc Add a hash-index component for block 2014-03-03 21:11:49 -08:00
hash.h
hash_linklist_rep.cc Consolidate SliceTransform object ownership 2014-03-10 12:56:46 -07:00
hash_linklist_rep.h Consolidate SliceTransform object ownership 2014-03-10 12:56:46 -07:00
hash_skiplist_rep.cc Consolidate SliceTransform object ownership 2014-03-10 12:56:46 -07:00
hash_skiplist_rep.h Consolidate SliceTransform object ownership 2014-03-10 12:56:46 -07:00
histogram.cc Statistics code cleanup 2014-01-17 12:46:06 -08:00
histogram.h Statistics code cleanup 2014-01-17 12:46:06 -08:00
histogram_test.cc
ldb_cmd.cc Support for LZ4 compression. 2014-02-08 14:15:51 -08:00
ldb_cmd.h
ldb_cmd_execute_result.h
ldb_tool.cc
log_buffer.cc [RocksDB] LogBuffer Cleanup 2014-03-10 11:05:44 -07:00
log_buffer.h [RocksDB] LogBuffer Cleanup 2014-03-10 11:05:44 -07:00
log_write_bench.cc A simple benchmark to measure WAL append latency 2014-02-24 14:39:32 -08:00
logging.cc
logging.h
manual_compaction_test.cc Fix CompactRange to apply filter to every key 2014-01-14 16:19:09 -08:00
murmurhash.cc
murmurhash.h Add a hash-index component for block 2014-03-03 21:11:49 -08:00
mutexlock.h
options.cc Add option verify_checksums_in_compaction 2014-03-10 10:06:34 -07:00
perf_context.cc output perf_context in db_bench readrandom 2014-03-05 10:32:54 -08:00
perf_context_imp.h
posix_logger.h Enable log info with different levels. 2014-02-26 14:41:28 -08:00
random.h
signal_test.cc
skiplistrep.cc Consolidate SliceTransform object ownership 2014-03-10 12:56:46 -07:00
slice.cc
stack_trace.h
statistics.cc convert Tickers back to array with padding and alignment 2014-01-29 15:08:41 -08:00
statistics.h cache SuperVersion in thread local storage to avoid mutex lock 2014-02-27 11:38:55 -08:00
stats_logger.h
status.cc IOError cleanup 2014-02-12 11:42:54 -08:00
stl_wrappers.h
stop_watch.h Statistics code cleanup 2014-01-17 12:46:06 -08:00
string_util.cc
string_util.h
testharness.cc
testharness.h
testutil.cc
testutil.h [Performance Branch] PlainTable to encode rows with seqID 0, value type using 1 internal byte. 2014-02-03 12:19:30 -08:00
thread_local.cc use CAS when returning SuperVersion to ThreadLocal 2014-03-07 14:43:22 -08:00
thread_local.h use CAS when returning SuperVersion to ThreadLocal 2014-03-07 14:43:22 -08:00
thread_local_test.cc use CAS when returning SuperVersion to ThreadLocal 2014-03-07 14:43:22 -08:00
vectorrep.cc Consolidate SliceTransform object ownership 2014-03-10 12:56:46 -07:00