rocksdb/include/rocksdb
Xing Jin 42c109cc2e New ldb command to convert compaction style
Summary:
Add new command "change_compaction_style" to ldb tool. For
universal->level, it shows "nothing to do". For level->universal, it
compacts all files into a single one and moves the file to level 0.

Also add check for number of files at level 1+ when opening db with
universal compaction style.

Test Plan:
'make all check'. New unit test for internal convertion function. Also manully test various
cmd like:

./ldb change_compaction_style --old_compaction_style=0
--new_compaction_style=1 --db=/tmp/leveldbtest-3088/db_test

Reviewers: haobo, dhruba

Reviewed By: haobo

CC: vamsi, emayanke

Differential Revision: https://reviews.facebook.net/D12603
2013-09-04 13:13:08 -07:00
..
arena.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
c.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
cache.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
compaction_filter.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
comparator.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
db.h New ldb command to convert compaction style 2013-09-04 13:13:08 -07:00
env.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
filter_policy.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
iterator.h Introduced a new flag non_blocking_io in ReadOptions. 2013-08-28 10:49:14 -07:00
ldb_tool.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
memtablerep.h [RocksDB] Fix TransformRepFactory related valgrind problem 2013-08-28 19:27:54 -07:00
merge_operator.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
options.h Correct status in options.h from WouldBlock to Incomplete 2013-08-31 08:50:04 -07:00
perf_context.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
slice_transform.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
slice.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
statistics.h Fix bug in Counters and record Sequencenumber using only TickerCount 2013-09-01 17:59:32 -07:00
status.h Introduced a new flag non_blocking_io in ReadOptions. 2013-08-28 10:49:14 -07:00
table_builder.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
transaction_log.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
types.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
universal_compaction.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00
write_batch.h Replace include/leveldb with include/rocksdb. 2013-08-23 10:51:00 -07:00