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
..
2019-09-03 08:52:24 -07:00
2019-09-03 08:52:24 -07:00
2019-06-20 14:31:48 -07:00
2019-05-31 17:23:59 -07:00
2019-06-27 08:58:54 -07:00
2019-08-23 13:55:34 -07:00
2019-08-23 13:55:34 -07:00
2019-08-23 13:55:34 -07:00
2019-08-20 10:34:33 -07:00
2019-05-31 11:57:01 -07:00
2019-08-06 14:26:44 -07:00
2019-07-17 12:27:14 -07:00
2019-05-30 17:44:09 -07:00
2019-08-16 16:42:56 -07:00
2019-08-16 16:42:56 -07:00
2019-05-31 11:57:01 -07:00
2019-09-03 08:52:24 -07:00
2019-08-06 14:26:44 -07:00
2019-07-23 16:01:44 -07:00
2019-05-13 17:47:21 -07:00
2019-02-14 14:41:36 -08:00
2019-08-29 14:07:37 -07:00
2018-11-12 16:42:16 -08:00
2019-05-30 11:25:51 -07:00
2019-06-13 14:43:13 -07:00
2019-07-01 14:12:02 -07:00
2019-06-06 13:56:07 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2018-10-29 14:36:31 -07:00
2019-05-30 17:44:09 -07:00
2019-05-30 17:44:09 -07:00
2019-07-23 08:08:19 -07:00
2019-05-31 15:24:43 -07:00
2019-07-04 17:28:30 -07:00
2019-02-14 14:41:36 -08:00
2019-05-15 11:21:48 -07:00
2019-08-06 14:26:44 -07:00
2019-08-06 14:26:44 -07:00
2019-06-17 21:16:29 -07:00
2019-08-23 13:55:34 -07:00
2019-06-04 10:24:14 -07:00
2019-07-06 21:07:32 -07:00
2019-03-01 10:42:09 -08:00
2019-05-30 11:25:51 -07:00
2018-07-17 14:43:18 -07:00
2019-08-09 15:12:08 -07:00
2019-08-10 19:15:05 -07:00
2019-08-09 15:12:08 -07:00
2019-08-23 13:55:34 -07:00
2019-05-30 11:25:51 -07:00
2019-07-09 11:18:32 -07:00
2019-05-30 17:44:09 -07:00
2019-05-31 17:23:59 -07:00
2019-07-25 15:27:39 -07:00
2019-07-25 15:27:39 -07:00
2019-08-23 13:55:34 -07:00
2019-05-30 11:25:51 -07:00
2019-05-31 15:24:43 -07:00
2018-10-04 20:46:50 -07:00
2019-07-23 19:38:16 -07:00
2019-05-31 17:23:59 -07:00
2019-05-31 11:57:01 -07:00
2019-08-20 10:43:39 -07:00
2019-08-30 18:29:07 -07:00
2019-08-14 21:02:28 -07:00
2019-08-30 18:29:07 -07:00
2019-05-31 17:23:59 -07:00
2019-05-30 17:44:09 -07:00
2017-07-15 16:11:23 -07:00
2019-05-30 17:44:09 -07:00
2019-05-31 17:23:59 -07:00
2019-09-03 08:52:24 -07:00
2019-06-06 13:56:07 -07:00
2019-05-31 17:23:59 -07:00
2019-08-23 13:55:34 -07:00
2019-08-23 13:55:34 -07:00
2019-06-06 13:56:07 -07:00
2019-06-20 14:31:48 -07:00
2019-05-30 17:44:09 -07:00
2019-08-14 21:02:28 -07:00
2019-07-17 12:27:14 -07:00
2019-07-19 13:25:36 -07:00
2019-06-06 13:56:07 -07:00
2019-07-12 17:30:51 -07:00
2019-01-15 21:34:38 -08:00
2019-05-31 17:23:59 -07:00
2018-08-24 18:13:20 -07:00
2019-03-26 16:45:31 -07:00
2019-04-24 12:08:44 -07:00
2019-05-30 17:44:09 -07:00
2019-05-21 12:33:17 -07:00
2019-04-25 10:11:41 -07:00
2018-05-03 15:43:09 -07:00
2018-05-03 15:43:09 -07:00
2019-07-25 15:27:39 -07:00
2019-07-02 12:07:01 -07:00
2017-07-15 16:11:23 -07:00
2019-05-30 17:44:09 -07:00
2019-08-23 13:55:34 -07:00
2019-08-23 13:55:34 -07:00
2019-08-23 13:55:34 -07:00
2019-08-23 13:55:34 -07:00
2019-08-23 13:55:34 -07:00
2019-04-11 14:28:26 -07:00
2019-05-30 17:44:09 -07:00
2019-06-04 10:24:14 -07:00
2018-12-17 17:33:46 -08:00
2017-07-15 16:11:23 -07:00
2019-05-31 15:24:43 -07:00
2019-05-31 11:57:01 -07:00
2019-05-31 11:57:01 -07:00
2019-05-30 17:44:09 -07:00
2017-07-15 16:11:23 -07:00
2019-05-31 17:23:59 -07:00
2019-06-10 11:53:31 -07:00
2019-05-31 11:57:01 -07:00
2019-05-30 17:44:09 -07:00
2019-05-30 11:25:51 -07:00
2019-05-31 11:57:01 -07:00
2019-05-31 11:57:01 -07:00
2019-05-30 11:25:51 -07:00
2019-06-06 13:56:07 -07:00
2018-12-17 13:20:51 -08:00
2019-07-23 08:08:19 -07:00
2019-05-31 11:57:01 -07:00
2019-08-23 13:55:34 -07:00
2019-01-16 09:55:32 -08:00
2017-07-15 16:11:23 -07:00
2019-05-03 17:30:22 -07:00
2019-08-28 16:11:56 -07:00
2019-08-28 16:11:56 -07:00
2019-05-31 11:57:01 -07:00
2019-03-18 12:15:34 -07:00
2019-03-18 12:15:34 -07:00
2019-08-26 11:26:29 -07:00
2019-08-26 11:26:29 -07:00
2019-08-23 13:55:34 -07:00
2019-08-23 13:55:34 -07:00
2019-05-31 17:23:59 -07:00
2019-08-29 14:07:37 -07:00
2019-08-29 14:07:37 -07:00
2019-09-03 08:52:24 -07:00
2019-09-03 08:52:24 -07:00
2019-09-03 08:52:24 -07:00
2019-09-03 08:52:24 -07:00
2019-09-03 08:52:24 -07:00
2019-09-03 08:52:24 -07:00
2019-06-19 08:10:08 -07:00
2019-07-06 21:07:32 -07:00
2019-07-06 21:07:32 -07:00
2017-07-15 16:11:23 -07:00
2019-08-23 13:55:34 -07:00
2019-08-23 13:55:34 -07:00
2019-08-27 10:59:11 -07:00
2019-06-10 11:53:31 -07:00
2017-07-15 16:11:23 -07:00
2019-05-30 11:25:51 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2019-05-30 17:44:09 -07:00
2019-01-03 12:40:42 -08:00