rocksdb/options
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
..
cf_options.cc Refactor trimming logic for immutable memtables (#5022) 2019-08-23 13:55:34 -07:00
cf_options.h Refactor trimming logic for immutable memtables (#5022) 2019-08-23 13:55:34 -07:00
db_options.cc Persistent globally unique DB ID in manifest (#5725) 2019-09-03 08:52:24 -07:00
db_options.h Persistent globally unique DB ID in manifest (#5725) 2019-09-03 08:52:24 -07:00
options_helper.cc Persistent globally unique DB ID in manifest (#5725) 2019-09-03 08:52:24 -07:00
options_helper.h Option string/map/file can set env from object registry (#5237) 2019-04-25 11:35:09 -07:00
options_parser.cc Move some memory related files from util/ to memory/ (#5382) 2019-05-30 17:44:09 -07:00
options_parser.h Organizing rocksdb/table directory by format 2019-05-30 14:51:11 -07:00
options_sanity_check.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
options_sanity_check.h Change RocksDB License 2017-07-15 16:11:23 -07:00
options_settable_test.cc Persistent globally unique DB ID in manifest (#5725) 2019-09-03 08:52:24 -07:00
options_test.cc Refactor trimming logic for immutable memtables (#5022) 2019-08-23 13:55:34 -07:00
options.cc Refactor trimming logic for immutable memtables (#5022) 2019-08-23 13:55:34 -07:00