rocksdb/file
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
..
delete_scheduler_test.cc simplify include directive involving inttypes (#5402) 2019-06-06 13:56:07 -07:00
delete_scheduler.cc Move some logging related files to logging/ (#5387) 2019-05-31 17:23:59 -07:00
delete_scheduler.h Move some file related files outside util/ (#5375) 2019-05-29 20:47:06 -07:00
file_util.cc Fix bugs in DBWALTest.kTolerateCorruptedTailRecords triggered by #5520 (#5550) 2019-07-09 11:18:32 -07:00
file_util.h Fix bugs in WAL trash file handling (#5520) 2019-07-06 21:07:32 -07:00
filename.cc Persistent globally unique DB ID in manifest (#5725) 2019-09-03 08:52:24 -07:00
filename.h Persistent globally unique DB ID in manifest (#5725) 2019-09-03 08:52:24 -07:00
sst_file_manager_impl.cc simplify include directive involving inttypes (#5402) 2019-06-06 13:56:07 -07:00
sst_file_manager_impl.h Organizing rocksdb/db directory 2019-05-31 11:57:01 -07:00