Revision cadc1adffa447f02eb65bd848cf26c13142a74bb authored by sdong on 13 June 2014, 22:54:19 UTC, committed by sdong on 16 June 2014, 23:10:52 UTC
Summary:
We added multiple fields to FileMetaData recently and are planning to add more.
This refactoring separate the minimum information for accessing the file. This object is copyable (FileMetaData is not copyable since the ref counter). I hope this refactoring can enable further improvements:

(1) use it to design a more efficient data structure to speed up read queries.
(2) in the future, when we add information of storage level, we can easily do the encoding, instead of enlarge this structure, which might expand memory work set for file meta data.

The definition is same as current EncodedFileMetaData used in two level iterator, so now the logic in two level iterator is easier to understand.

Test Plan: make all check

Reviewers: haobo, igor, ljin

Reviewed By: ljin

Subscribers: leveldb, dhruba, yhchiang

Differential Revision: https://reviews.facebook.net/D18933
1 parent 4d913cf
History
File Mode Size
arena.cc -rw-r--r-- 4.2 KB
arena.h -rw-r--r-- 4.5 KB
arena_test.cc -rw-r--r-- 4.4 KB
auto_roll_logger.cc -rw-r--r-- 3.6 KB
auto_roll_logger.h -rw-r--r-- 2.7 KB
auto_roll_logger_test.cc -rwxr-xr-x 10.3 KB
autovector.h -rw-r--r-- 8.5 KB
autovector_test.cc -rw-r--r-- 8.8 KB
benchharness.cc -rw-r--r-- 11.2 KB
benchharness.h -rw-r--r-- 11.4 KB
benchharness_test.cc -rw-r--r-- 1.4 KB
blob_store.cc -rw-r--r-- 7.3 KB
blob_store.h -rw-r--r-- 4.9 KB
blob_store_test.cc -rw-r--r-- 5.4 KB
bloom.cc -rw-r--r-- 3.5 KB
bloom_test.cc -rw-r--r-- 4.3 KB
build_version.h -rw-r--r-- 701 bytes
cache.cc -rw-r--r-- 13.4 KB
cache_test.cc -rw-r--r-- 11.5 KB
coding.cc -rw-r--r-- 4.8 KB
coding.h -rw-r--r-- 9.7 KB
coding_test.cc -rw-r--r-- 8.6 KB
comparator.cc -rw-r--r-- 2.4 KB
crc32c.cc -rw-r--r-- 16.1 KB
crc32c.h -rw-r--r-- 1.6 KB
crc32c_test.cc -rw-r--r-- 2.0 KB
dynamic_bloom.cc -rw-r--r-- 2.3 KB
dynamic_bloom.h -rw-r--r-- 4.5 KB
dynamic_bloom_test.cc -rw-r--r-- 5.9 KB
env.cc -rw-r--r-- 5.7 KB
env_hdfs.cc -rw-r--r-- 17.5 KB
env_posix.cc -rw-r--r-- 47.1 KB
env_test.cc -rw-r--r-- 22.5 KB
filelock_test.cc -rw-r--r-- 1.3 KB
filter_policy.cc -rw-r--r-- 628 bytes
hash.cc -rw-r--r-- 1.2 KB
hash.h -rw-r--r-- 716 bytes
hash_cuckoo_rep.cc -rw-r--r-- 23.7 KB
hash_cuckoo_rep.h -rw-r--r-- 1.6 KB
hash_linklist_rep.cc -rw-r--r-- 14.5 KB
hash_linklist_rep.h -rw-r--r-- 1.3 KB
hash_skiplist_rep.cc -rw-r--r-- 10.7 KB
hash_skiplist_rep.h -rw-r--r-- 1.4 KB
histogram.cc -rw-r--r-- 6.9 KB
histogram.h -rw-r--r-- 2.2 KB
histogram_test.cc -rw-r--r-- 1.6 KB
ldb_cmd.cc -rw-r--r-- 56.2 KB
ldb_cmd.h -rw-r--r-- 17.3 KB
ldb_cmd_execute_result.h -rw-r--r-- 1.6 KB
ldb_tool.cc -rw-r--r-- 3.4 KB
log_buffer.cc -rw-r--r-- 2.0 KB
log_buffer.h -rw-r--r-- 1.4 KB
log_write_bench.cc -rw-r--r-- 2.3 KB
logging.cc -rw-r--r-- 2.7 KB
logging.h -rw-r--r-- 1.7 KB
manual_compaction_test.cc -rw-r--r-- 4.4 KB
murmurhash.cc -rw-r--r-- 3.9 KB
murmurhash.h -rw-r--r-- 1.3 KB
mutexlock.h -rw-r--r-- 2.0 KB
options.cc -rw-r--r-- 24.7 KB
perf_context.cc -rw-r--r-- 2.5 KB
perf_context_imp.h -rw-r--r-- 2.1 KB
posix_logger.h -rw-r--r-- 4.7 KB
random.h -rw-r--r-- 3.1 KB
signal_test.cc -rw-r--r-- 594 bytes
skiplistrep.cc -rw-r--r-- 3.9 KB
slice.cc -rw-r--r-- 1.8 KB
statistics.cc -rw-r--r-- 2.6 KB
statistics.h -rw-r--r-- 2.0 KB
stats_logger.h -rw-r--r-- 910 bytes
status.cc -rw-r--r-- 2.3 KB
stl_wrappers.h -rw-r--r-- 882 bytes
stop_watch.h -rw-r--r-- 1.6 KB
string_util.cc -rw-r--r-- 672 bytes
string_util.h -rw-r--r-- 484 bytes
sync_point.cc -rw-r--r-- 1.6 KB
sync_point.h -rw-r--r-- 2.7 KB
testharness.cc -rw-r--r-- 2.0 KB
testharness.h -rw-r--r-- 4.8 KB
testutil.cc -rw-r--r-- 1.7 KB
testutil.h -rw-r--r-- 2.9 KB
thread_local.cc -rw-r--r-- 6.8 KB
thread_local.h -rw-r--r-- 6.3 KB
thread_local_test.cc -rw-r--r-- 11.4 KB
vectorrep.cc -rw-r--r-- 8.7 KB
xxhash.cc -rw-r--r-- 15.0 KB
xxhash.h -rw-r--r-- 6.2 KB

back to top