rocksdb/tools
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
..
shell Fixed typos 2013-11-16 11:21:34 +00:00
blob_store_bench.cc Fix make release 2013-10-31 11:47:22 -07:00
db_crashtest2.py Reopen DB in crash test 2014-03-03 17:10:30 -08:00
db_crashtest.py Reopen DB in crash test 2014-03-03 17:10:30 -08:00
db_repl_stress.cc Fix some 32-bit compile errors 2014-02-03 13:48:30 -08:00
db_sanity_test.cc DB Sanity Test 2014-03-06 11:36:39 -08:00
db_stress.cc Consolidate SliceTransform object ownership 2014-03-10 12:56:46 -07:00
ldb_test.py fix ldb_test TtlPutGet test 2014-03-10 12:11:46 -07:00
ldb.cc Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
reduce_levels_test.cc Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00
sst_dump.cc Consolidate SliceTransform object ownership 2014-03-10 12:56:46 -07:00