Andrew Kryczka
5b748b9e68
Cover all status codes in Status::ToString()
( #7872 )
...
Summary:
- Completed the switch statement for all possible `Code` values (the only one missing was `kCompactionTooLarge`).
- Removed the default case so compiler can alert us if a new value is added to `Code` without handling it in `Status::ToString()`.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/7872
Test Plan:
verified the log message for this scenario looks right
```
2021/01/15-17:26:34.564450 7fa6845fe700 [ERROR] [/db_impl/db_impl_compaction_flush.cc:2621] Waiting after background compaction error: Compaction too large: , Accumulated background error counts: 1
```
Reviewed By: ramvadiv
Differential Revision: D25934539
Pulled By: ajkr
fbshipit-source-id: 2e0b3c0d993e356a4987276d6f8a163f0ee8be7a
2021-01-16 04:28:50 -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
2020-12-18 14:31:03 -08:00
2019-04-18 10:55:01 -07:00
2017-07-15 16:11:23 -07:00
2020-07-02 19:25:41 -07:00
2020-02-20 12:09:57 -08:00
2020-10-23 14:11:15 -07:00
2020-06-02 15:05:07 -07:00
2020-02-20 12:09:57 -08:00
2020-10-23 14:11:15 -07:00
2020-10-01 12:52:58 -07: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
2020-11-02 19:21:11 -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
2020-10-28 23:22:27 -07: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-01-04 16:01:01 -08:00
2020-10-01 09:23:04 -07:00
2020-12-11 22:18:12 -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
2020-04-20 13:24:25 -07:00
2020-11-10 23:42:13 -08:00
2020-06-03 15:55:03 -07: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-11-03 12:46:36 -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
2020-12-02 15:16:49 -08:00
2020-12-22 23:45:58 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-08-20 08:43:13 -07:00
2020-11-07 17:22:54 -08:00
2020-12-18 14:31:03 -08:00
2020-11-12 20:46:14 -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-16 04:28:50 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -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
2020-09-14 17:01:01 -07:00
2020-08-21 15:48:52 -07: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