rocksdb/db/compaction
Vijay Nadimpalli 979fbdc696 Persistent globally unique DB ID in manifest (#5725)
Summary:
Each DB has a globally unique ID. A DB can be physically copied around, or backed-up and restored, and the users should be identify the same DB. This unique ID right now is stored as plain text in file IDENTITY under the DB directory. This approach introduces at least two problems: (1) the file is not checksumed; (2) the source of truth of a DB is the manifest file, which can be copied separately from IDENTITY file, causing the DB ID to be wrong.
The goal of this PR is solve this problem by moving the  DB ID to manifest. To begin with we will write to both identity file and manifest. Write to Manifest is controlled via the flag write_dbid_to_manifest in Options and default is false.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5725

Test Plan: Added unit tests.

Differential Revision: D16963840

Pulled By: vjnadimpalli

fbshipit-source-id: 8a86a4c8c82c716003c40fd6b9d2d758030d92e9
2019-09-03 08:52:24 -07:00
..
compaction_iteration_stats.h Organizing rocksdb/db directory 2019-05-31 11:57:01 -07:00
compaction_iterator_test.cc Organizing rocksdb/db directory 2019-05-31 11:57:01 -07:00
compaction_iterator.cc Organizing rocksdb/db directory 2019-05-31 11:57:01 -07:00
compaction_iterator.h Disable snapshot refresh feature when snap_refresh_nanos is 0 (#5724) 2019-08-20 11:40:07 -07:00
compaction_job_stats_test.cc simplify include directive involving inttypes (#5402) 2019-06-06 13:56:07 -07:00
compaction_job_test.cc Persistent globally unique DB ID in manifest (#5725) 2019-09-03 08:52:24 -07:00
compaction_job.cc Improve CPU Efficiency of ApproximateSize (part 2) (#5609) 2019-07-31 08:50:00 -07:00
compaction_job.h Move some logging related files to logging/ (#5387) 2019-05-31 17:23:59 -07:00
compaction_picker_fifo.cc Fix assertion failure in FIFO compaction with TTL (#5754) 2019-08-30 12:42:01 -07:00
compaction_picker_fifo.h Organizing rocksdb/db directory 2019-05-31 11:57:01 -07:00
compaction_picker_level.cc simplify include directive involving inttypes (#5402) 2019-06-06 13:56:07 -07:00
compaction_picker_level.h Organizing rocksdb/db directory 2019-05-31 11:57:01 -07:00
compaction_picker_test.cc Move some logging related files to logging/ (#5387) 2019-05-31 17:23:59 -07:00
compaction_picker_universal.cc simplify include directive involving inttypes (#5402) 2019-06-06 13:56:07 -07:00
compaction_picker_universal.h Organizing rocksdb/db directory 2019-05-31 11:57:01 -07:00
compaction_picker.cc simplify include directive involving inttypes (#5402) 2019-06-06 13:56:07 -07:00
compaction_picker.h Organizing rocksdb/db directory 2019-05-31 11:57:01 -07:00
compaction.cc simplify include directive involving inttypes (#5402) 2019-06-06 13:56:07 -07:00
compaction.h Organizing rocksdb/db directory 2019-05-31 11:57:01 -07:00