]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Move functions from VersionSet to Version
authorIgor Canadi <icanadi@fb.com>
Thu, 16 Jan 2014 00:18:04 +0000 (16:18 -0800)
committerIgor Canadi <icanadi@fb.com>
Thu, 16 Jan 2014 00:18:04 +0000 (16:18 -0800)
commit2f4eda78906e5922c519f3ba49e7a3fe1bdd1403
treeae2d22ed3ecba8de491bb90337b6109d0f81aa52
Move functions from VersionSet to Version

Summary:
There were some functions in VersionSet that had no reason to be there instead of Version. Moving them to Version will make column families implementation easier.

The functions moved are:
* NumLevelBytes
* LevelSummary
* LevelFileSummary
* MaxNextLevelOverlappingBytes
* AddLiveFiles (previously AddLiveFilesCurrentVersion())
* NeedSlowdownForNumLevel0Files

The diff continues on (and depends on) D15171

Test Plan: make check

Reviewers: dhruba, haobo, kailiu, sdong, emayanke

Reviewed By: sdong

CC: leveldb
Differential Revision: https://reviews.facebook.net/D15183
271 files changed:
.arcconfig [new file with mode: 0644]
.clang-format [new file with mode: 0644]
.gitignore [new file with mode: 0644]
CONTRIBUTING.md [new file with mode: 0644]
INSTALL.md [new file with mode: 0644]
LICENSE [new file with mode: 0644]
Makefile [new file with mode: 0644]
PATENTS [new file with mode: 0644]
README [new file with mode: 0644]
README.fb [new file with mode: 0644]
build_tools/build_detect_platform [new file with mode: 0755]
build_tools/build_detect_version [new file with mode: 0755]
build_tools/fbcode.clang31.sh [new file with mode: 0644]
build_tools/fbcode.gcc471.sh [new file with mode: 0644]
build_tools/fbcode.gcc481.sh [new file with mode: 0644]
build_tools/format-diff.sh [new file with mode: 0755]
build_tools/mac-install-gflags.sh [new file with mode: 0755]
build_tools/make_new_version.sh [new file with mode: 0755]
build_tools/regression_build_test.sh [new file with mode: 0755]
build_tools/valgrind_test.sh [new file with mode: 0755]
coverage/coverage_test.sh [new file with mode: 0755]
coverage/parse_gcov_output.py [new file with mode: 0644]
db/builder.cc [new file with mode: 0644]
db/builder.h [new file with mode: 0644]
db/c.cc [new file with mode: 0644]
db/c_test.c [new file with mode: 0644]
db/corruption_test.cc [new file with mode: 0644]
db/db_bench.cc [new file with mode: 0644]
db/db_filesnapshot.cc [new file with mode: 0644]
db/db_impl.cc [new file with mode: 0644]
db/db_impl.h [new file with mode: 0644]
db/db_impl_readonly.cc [new file with mode: 0644]
db/db_impl_readonly.h [new file with mode: 0644]
db/db_iter.cc [new file with mode: 0644]
db/db_iter.h [new file with mode: 0644]
db/db_statistics.cc [new file with mode: 0644]
db/db_statistics.h [new file with mode: 0644]
db/db_stats_logger.cc [new file with mode: 0644]
db/db_test.cc [new file with mode: 0644]
db/dbformat.cc [new file with mode: 0644]
db/dbformat.h [new file with mode: 0644]
db/dbformat_test.cc [new file with mode: 0644]
db/deletefile_test.cc [new file with mode: 0644]
db/filename.cc [new file with mode: 0644]
db/filename.h [new file with mode: 0644]
db/filename_test.cc [new file with mode: 0644]
db/log_format.h [new file with mode: 0644]
db/log_reader.cc [new file with mode: 0644]
db/log_reader.h [new file with mode: 0644]
db/log_test.cc [new file with mode: 0644]
db/log_writer.cc [new file with mode: 0644]
db/log_writer.h [new file with mode: 0644]
db/memtable.cc [new file with mode: 0644]
db/memtable.h [new file with mode: 0644]
db/memtablelist.cc [new file with mode: 0644]
db/memtablelist.h [new file with mode: 0644]
db/merge_context.h [new file with mode: 0644]
db/merge_helper.cc [new file with mode: 0644]
db/merge_helper.h [new file with mode: 0644]
db/merge_operator.cc [new file with mode: 0644]
db/merge_test.cc [new file with mode: 0644]
db/perf_context_test.cc [new file with mode: 0644]
db/prefix_filter_iterator.h [new file with mode: 0644]
db/prefix_test.cc [new file with mode: 0644]
db/repair.cc [new file with mode: 0644]
db/simple_table_db_test.cc [new file with mode: 0644]
db/skiplist.h [new file with mode: 0644]
db/skiplist_test.cc [new file with mode: 0644]
db/snapshot.h [new file with mode: 0644]
db/table_cache.cc [new file with mode: 0644]
db/table_cache.h [new file with mode: 0644]
db/table_properties_collector.cc [new file with mode: 0644]
db/table_properties_collector.h [new file with mode: 0644]
db/table_properties_collector_test.cc [new file with mode: 0644]
db/transaction_log_impl.cc [new file with mode: 0644]
db/transaction_log_impl.h [new file with mode: 0644]
db/version_edit.cc [new file with mode: 0644]
db/version_edit.h [new file with mode: 0644]
db/version_edit_test.cc [new file with mode: 0644]
db/version_set.cc [new file with mode: 0644]
db/version_set.h [new file with mode: 0644]
db/version_set_reduce_num_levels.cc [new file with mode: 0644]
db/version_set_test.cc [new file with mode: 0644]
db/write_batch.cc [new file with mode: 0644]
db/write_batch_internal.h [new file with mode: 0644]
db/write_batch_test.cc [new file with mode: 0644]
doc/doc.css [new file with mode: 0644]
doc/index.html [new file with mode: 0644]
doc/log_format.txt [new file with mode: 0644]
doc/rockslogo.jpg [new file with mode: 0644]
doc/rockslogo.png [new file with mode: 0644]
hdfs/README [new file with mode: 0644]
hdfs/env_hdfs.h [new file with mode: 0644]
hdfs/hdfs.h [new file with mode: 0644]
hdfs/libhdfs.a [new file with mode: 0644]
helpers/memenv/memenv.cc [new file with mode: 0644]
helpers/memenv/memenv.h [new file with mode: 0644]
helpers/memenv/memenv_test.cc [new file with mode: 0644]
include/rocksdb/arena.h [new file with mode: 0644]
include/rocksdb/c.h [new file with mode: 0644]
include/rocksdb/cache.h [new file with mode: 0644]
include/rocksdb/compaction_filter.h [new file with mode: 0644]
include/rocksdb/comparator.h [new file with mode: 0644]
include/rocksdb/db.h [new file with mode: 0644]
include/rocksdb/env.h [new file with mode: 0644]
include/rocksdb/filter_policy.h [new file with mode: 0644]
include/rocksdb/flush_block_policy.h [new file with mode: 0644]
include/rocksdb/iterator.h [new file with mode: 0644]
include/rocksdb/ldb_tool.h [new file with mode: 0644]
include/rocksdb/memtablerep.h [new file with mode: 0644]
include/rocksdb/merge_operator.h [new file with mode: 0644]
include/rocksdb/options.h [new file with mode: 0644]
include/rocksdb/perf_context.h [new file with mode: 0644]
include/rocksdb/slice.h [new file with mode: 0644]
include/rocksdb/slice_transform.h [new file with mode: 0644]
include/rocksdb/statistics.h [new file with mode: 0644]
include/rocksdb/status.h [new file with mode: 0644]
include/rocksdb/table.h [new file with mode: 0644]
include/rocksdb/table_properties.h [new file with mode: 0644]
include/rocksdb/transaction_log.h [new file with mode: 0644]
include/rocksdb/types.h [new file with mode: 0644]
include/rocksdb/universal_compaction.h [new file with mode: 0644]
include/rocksdb/write_batch.h [new file with mode: 0644]
include/utilities/backupable_db.h [new file with mode: 0644]
include/utilities/stackable_db.h [new file with mode: 0644]
include/utilities/utility_db.h [new file with mode: 0644]
linters/src/.phutil_module_cache [new file with mode: 0644]
linters/src/__phutil_library_init__.php [new file with mode: 0644]
linters/src/__phutil_library_map__.php [new file with mode: 0644]
linters/src/cpp_linter/FbcodeCppLinter.php [new file with mode: 0644]
linters/src/cpp_linter/PfffCppLinter.php [new file with mode: 0644]
linters/src/lint_engine/FacebookFbcodeLintEngine.php [new file with mode: 0644]
port/README [new file with mode: 0644]
port/atomic_pointer.h [new file with mode: 0644]
port/port.h [new file with mode: 0644]
port/port_example.h [new file with mode: 0644]
port/port_posix.cc [new file with mode: 0644]
port/port_posix.h [new file with mode: 0644]
port/stack_trace.cc [new file with mode: 0644]
port/win/stdint.h [new file with mode: 0644]
table/block.cc [new file with mode: 0644]
table/block.h [new file with mode: 0644]
table/block_based_table_builder.cc [new file with mode: 0644]
table/block_based_table_builder.h [new file with mode: 0644]
table/block_based_table_factory.cc [new file with mode: 0644]
table/block_based_table_factory.h [new file with mode: 0644]
table/block_based_table_reader.cc [new file with mode: 0644]
table/block_based_table_reader.h [new file with mode: 0644]
table/block_builder.cc [new file with mode: 0644]
table/block_builder.h [new file with mode: 0644]
table/block_test.cc [new file with mode: 0644]
table/filter_block.cc [new file with mode: 0644]
table/filter_block.h [new file with mode: 0644]
table/filter_block_test.cc [new file with mode: 0644]
table/flush_block_policy.cc [new file with mode: 0644]
table/format.cc [new file with mode: 0644]
table/format.h [new file with mode: 0644]
table/iter_heap.h [new file with mode: 0644]
table/iterator.cc [new file with mode: 0644]
table/iterator_wrapper.h [new file with mode: 0644]
table/merger.cc [new file with mode: 0644]
table/merger.h [new file with mode: 0644]
table/table_reader_bench.cc [new file with mode: 0644]
table/table_test.cc [new file with mode: 0644]
table/two_level_iterator.cc [new file with mode: 0644]
table/two_level_iterator.h [new file with mode: 0644]
tools/blob_store_bench.cc [new file with mode: 0644]
tools/db_crashtest.py [new file with mode: 0644]
tools/db_crashtest2.py [new file with mode: 0644]
tools/db_repl_stress.cc [new file with mode: 0644]
tools/db_stress.cc [new file with mode: 0644]
tools/ldb.cc [new file with mode: 0644]
tools/ldb_test.py [new file with mode: 0644]
tools/reduce_levels_test.cc [new file with mode: 0644]
tools/shell/DBClientProxy.cpp [new file with mode: 0644]
tools/shell/DBClientProxy.h [new file with mode: 0644]
tools/shell/LeveldbShell.cpp [new file with mode: 0644]
tools/shell/ShellContext.cpp [new file with mode: 0644]
tools/shell/ShellContext.h [new file with mode: 0644]
tools/shell/ShellState.cpp [new file with mode: 0644]
tools/shell/ShellState.h [new file with mode: 0644]
tools/shell/test/DBClientProxyTest.cpp [new file with mode: 0644]
tools/sst_dump.cc [new file with mode: 0644]
util/arena_impl.cc [new file with mode: 0644]
util/arena_impl.h [new file with mode: 0644]
util/arena_test.cc [new file with mode: 0644]
util/auto_roll_logger.cc [new file with mode: 0644]
util/auto_roll_logger.h [new file with mode: 0644]
util/auto_roll_logger_test.cc [new file with mode: 0755]
util/autovector.h [new file with mode: 0644]
util/autovector_test.cc [new file with mode: 0644]
util/bit_set.h [new file with mode: 0644]
util/blob_store.cc [new file with mode: 0644]
util/blob_store.h [new file with mode: 0644]
util/blob_store_test.cc [new file with mode: 0644]
util/bloom.cc [new file with mode: 0644]
util/bloom_test.cc [new file with mode: 0644]
util/build_version.h [new file with mode: 0644]
util/cache.cc [new file with mode: 0644]
util/cache_test.cc [new file with mode: 0644]
util/coding.cc [new file with mode: 0644]
util/coding.h [new file with mode: 0644]
util/coding_test.cc [new file with mode: 0644]
util/comparator.cc [new file with mode: 0644]
util/crc32c.cc [new file with mode: 0644]
util/crc32c.h [new file with mode: 0644]
util/crc32c_test.cc [new file with mode: 0644]
util/env.cc [new file with mode: 0644]
util/env_hdfs.cc [new file with mode: 0644]
util/env_posix.cc [new file with mode: 0644]
util/env_test.cc [new file with mode: 0644]
util/filelock_test.cc [new file with mode: 0644]
util/filter_policy.cc [new file with mode: 0644]
util/hash.cc [new file with mode: 0644]
util/hash.h [new file with mode: 0644]
util/hash_skiplist_rep.cc [new file with mode: 0644]
util/hash_skiplist_rep.h [new file with mode: 0644]
util/histogram.cc [new file with mode: 0644]
util/histogram.h [new file with mode: 0644]
util/histogram_test.cc [new file with mode: 0644]
util/ldb_cmd.cc [new file with mode: 0644]
util/ldb_cmd.h [new file with mode: 0644]
util/ldb_cmd_execute_result.h [new file with mode: 0644]
util/ldb_tool.cc [new file with mode: 0644]
util/logging.cc [new file with mode: 0644]
util/logging.h [new file with mode: 0644]
util/manual_compaction_test.cc [new file with mode: 0644]
util/murmurhash.cc [new file with mode: 0644]
util/murmurhash.h [new file with mode: 0644]
util/mutexlock.h [new file with mode: 0644]
util/options.cc [new file with mode: 0644]
util/perf_context.cc [new file with mode: 0644]
util/perf_context_imp.h [new file with mode: 0644]
util/posix_logger.h [new file with mode: 0644]
util/random.h [new file with mode: 0644]
util/signal_test.cc [new file with mode: 0644]
util/skiplistrep.cc [new file with mode: 0644]
util/slice.cc [new file with mode: 0644]
util/stack_trace.h [new file with mode: 0644]
util/statistics.cc [new file with mode: 0644]
util/statistics_imp.h [new file with mode: 0644]
util/stats_logger.h [new file with mode: 0644]
util/status.cc [new file with mode: 0644]
util/stl_wrappers.h [new file with mode: 0644]
util/stop_watch.h [new file with mode: 0644]
util/string_util.cc [new file with mode: 0644]
util/string_util.h [new file with mode: 0644]
util/testharness.cc [new file with mode: 0644]
util/testharness.h [new file with mode: 0644]
util/testutil.cc [new file with mode: 0644]
util/testutil.h [new file with mode: 0644]
util/vectorrep.cc [new file with mode: 0644]
utilities/backupable/backupable_db.cc [new file with mode: 0644]
utilities/backupable/backupable_db_test.cc [new file with mode: 0644]
utilities/merge_operators.h [new file with mode: 0644]
utilities/merge_operators/put.cc [new file with mode: 0644]
utilities/merge_operators/string_append/stringappend.cc [new file with mode: 0644]
utilities/merge_operators/string_append/stringappend.h [new file with mode: 0644]
utilities/merge_operators/string_append/stringappend2.cc [new file with mode: 0644]
utilities/merge_operators/string_append/stringappend2.h [new file with mode: 0644]
utilities/merge_operators/string_append/stringappend_test.cc [new file with mode: 0644]
utilities/merge_operators/uint64add.cc [new file with mode: 0644]
utilities/redis/README [new file with mode: 0644]
utilities/redis/redis_list_exception.h [new file with mode: 0644]
utilities/redis/redis_list_iterator.h [new file with mode: 0644]
utilities/redis/redis_lists.cc [new file with mode: 0644]
utilities/redis/redis_lists.h [new file with mode: 0644]
utilities/redis/redis_lists_test.cc [new file with mode: 0644]
utilities/ttl/db_ttl.cc [new file with mode: 0644]
utilities/ttl/db_ttl.h [new file with mode: 0644]
utilities/ttl/ttl_test.cc [new file with mode: 0644]