Revision 3ebb7ba7b989df8d000d4f4caebe7b607ace4a93 authored by Yi Wu on 27 October 2017, 20:14:34 UTC, committed by Facebook Github Bot on 27 October 2017, 20:27:12 UTC
Summary:
Changing blob file format and some code cleanup around the change. The change with blob log format are:
* Remove timestamp field in blob file header, blob file footer and blob records. The field is not being use and often confuse with expiration field.
* Blob file header now come with column family id, which always equal to default column family id. It leaves room for future support of column family.
* Compression field in blob file header now is a standalone byte (instead of compact encode with flags field)
* Blob file footer now come with its own crc.
* Key length now being uint64_t instead of uint32_t
* Blob CRC now checksum both key and value (instead of value only).
* Some reordering of the fields.

The list of cleanups:
* Better inline comments in blob_log_format.h
* rename ttlrange_t and snrange_t to ExpirationRange and SequenceRange respectively.
* simplify blob_db::Reader
* Move crc checking logic to inside blob_log_format.cc
Closes https://github.com/facebook/rocksdb/pull/3081

Differential Revision: D6171304

Pulled By: yiwu-arbug

fbshipit-source-id: e4373e0d39264441b7e2fbd0caba93ddd99ea2af
1 parent 682db81
History
File Mode Size
alloc_tracker.cc -rw-r--r-- 1.9 KB
hash_cuckoo_rep.cc -rw-r--r-- 24.7 KB
hash_cuckoo_rep.h -rw-r--r-- 1.6 KB
hash_linklist_rep.cc -rw-r--r-- 29.2 KB
hash_linklist_rep.h -rw-r--r-- 1.8 KB
hash_skiplist_rep.cc -rw-r--r-- 11.1 KB
hash_skiplist_rep.h -rw-r--r-- 1.4 KB
inlineskiplist.h -rw-r--r-- 32.1 KB
inlineskiplist_test.cc -rw-r--r-- 16.8 KB
memtablerep_bench.cc -rw-r--r-- 24.1 KB
skiplist.h -rw-r--r-- 15.6 KB
skiplist_test.cc -rw-r--r-- 10.2 KB
skiplistrep.cc -rw-r--r-- 8.5 KB
stl_wrappers.h -rw-r--r-- 885 bytes
vectorrep.cc -rw-r--r-- 8.9 KB
write_buffer_manager.cc -rw-r--r-- 4.7 KB
write_buffer_manager_test.cc -rw-r--r-- 5.1 KB

back to top