Peter Dillinger
4b18c46d10
Refactor: add LineFileReader and Status::MustCheck ( #8026 )
...
Summary:
Removed confusing, awkward, and undocumented internal API
ReadOneLine and replaced with very simple LineFileReader.
In refactoring backupable_db.cc, this has the side benefit of
removing the arbitrary cap on the size of backup metadata files.
Also added Status::MustCheck to make it easy to mark a Status as
"must check." Using this, I can ensure that after
LineFileReader::ReadLine returns false the caller checks GetStatus().
Also removed some excessive conditional compilation in status.h
Pull Request resolved: https://github.com/facebook/rocksdb/pull/8026
Test Plan: added unit test, and running tests with ASSERT_STATUS_CHECKED
Reviewed By: mrambacher
Differential Revision: D26831687
Pulled By: pdillinger
fbshipit-source-id: ef749c265a7a26bb13cd44f6f0f97db2955f6f0f
2021-03-09 20:12:38 -08:00
..
2020-10-07 12:34:34 -07:00
2020-02-20 12:09:57 -08:00
2020-05-21 14:48:10 -07:00
2020-11-03 12:46:36 -08:00
2021-02-26 08:50:42 -08:00
2021-01-28 17:42:16 -08:00
2020-07-02 19:25:41 -07:00
2020-02-20 12:09:57 -08:00
2021-02-26 08:50:42 -08:00
2020-06-02 15:05:07 -07:00
2020-02-20 12:09:57 -08:00
2021-02-26 08:50:42 -08:00
2021-03-04 00:43:48 -08:00
2020-10-28 23:22:27 -07:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2021-02-19 14:09:54 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-12-08 13:33:21 -08:00
2020-12-04 15:22:33 -08:00
2020-12-01 11:21:44 -08:00
2019-05-21 16:22:35 -07:00
2020-12-01 11:21:44 -08:00
2020-12-01 11:21:44 -08:00
2020-02-20 12:09:57 -08:00
2020-12-08 15:31:56 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2021-01-25 22:09:11 -08:00
2020-02-20 12:09:57 -08:00
2020-09-28 11:35:00 -07:00
2020-09-28 11:35:00 -07:00
2020-11-11 08:00:14 -08:00
2020-08-26 10:39:20 -07:00
2021-03-09 20:12:38 -08:00
2020-10-01 09:23:04 -07:00
2021-01-25 22:09:11 -08:00
2020-10-27 10:33:09 -07:00
2020-03-20 14:59:54 -07:00
2020-11-10 23:42:13 -08:00
2021-01-29 12:18:58 -08:00
2021-01-29 12:18:58 -08:00
2020-06-03 15:55:03 -07:00
2021-02-19 13:47:25 -08:00
2020-02-20 12:09:57 -08:00
2021-01-25 22:09:11 -08:00
2021-02-26 08:50:42 -08:00
2020-10-01 09:23:04 -07:00
2020-04-20 13:24:25 -07:00
2020-02-20 12:09:57 -08:00
2020-04-21 13:16:31 -07:00
2019-05-21 16:22:35 -07:00
2020-02-20 12:09:57 -08:00
2020-07-09 14:35:17 -07:00
2020-07-09 14:35:17 -07:00
2021-01-25 22:09:11 -08:00
2021-01-25 22:09:11 -08:00
2021-01-25 22:09:11 -08:00
2021-01-25 22:09:11 -08:00
2021-01-25 22:09:11 -08:00
2021-02-26 08:50:42 -08:00
2021-02-26 08:50:42 -08:00
2021-02-26 08:50:42 -08:00
2021-02-26 08:50:42 -08:00
2021-02-26 08:50:42 -08:00
2020-02-20 12:09:57 -08:00
2021-02-10 22:20:32 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2021-02-18 12:25:35 -08:00
2020-02-20 12:09:57 -08:00
2021-01-25 22:09:11 -08:00
2020-10-28 23:22:27 -07:00
2020-05-21 10:58:39 -07:00
2021-01-04 10:46:24 -08:00
2020-06-04 11:44:09 -07:00
2020-07-15 09:23:23 -07:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-06-13 13:25:20 -07:00
2020-06-13 13:25:20 -07:00
2017-07-15 16:11:23 -07:00
2020-02-20 12:09:57 -08:00
2021-01-25 22:09:11 -08:00
2021-01-25 22:09:11 -08:00
2020-07-07 17:26:16 -07:00
2020-02-20 12:09:57 -08:00
2020-04-01 16:40:18 -07:00
2020-04-03 10:26:49 -07:00
2020-10-01 09:23:04 -07:00
2020-10-28 23:22:27 -07:00
2019-10-24 17:16:46 -07:00