Commit 48ac24a
Partially convert Rdb_cf_options class to use (#1461)
Upstream commit ID: facebook/mysql-5.6@68638be03ecd
PS-9395: Merge percona-202404 (https://jira.percona.com/browse/PS-9395)
Summary:
- Partially convert Rdb_cf_options methods to take std::string_view parameters.
Specifically, do not convert the ones that are passed as keys to m_name_map,
which is a std::unordered_map<string, string>. This can be converted in C++20,
where lookups through a different key type are supported.
- Convert Rdb_cf_manager::is_cf_name_reverse and create_cf_flags_if_needed
methods to take std::string_view arguments, update callers.
- Convert pointer arguments for the touched methods to const reference and
reference ones, where possible, remove redundant nullptr-checking asserts.
Remove redundant const from pass-by-value arguments, add [[nodiscard]].
- Update ER_CF_DIFFERENT to print an std::string_view parameter.
Pull Request resolved: facebook/mysql-5.6#1461
Differential Revision: D58594610
fbshipit-source-id: 90e90875051cad3221fb5c485c787ea09a18efb81 parent 7433fdd commit 48ac24a
File tree
7 files changed
+119
-130
lines changed- storage/rocksdb
7 files changed
+119
-130
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10136 | 10136 | | |
10137 | 10137 | | |
10138 | 10138 | | |
10139 | | - | |
| 10139 | + | |
10140 | 10140 | | |
10141 | 10141 | | |
10142 | 10142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8532 | 8532 | | |
8533 | 8533 | | |
8534 | 8534 | | |
8535 | | - | |
| 8535 | + | |
8536 | 8536 | | |
8537 | 8537 | | |
8538 | 8538 | | |
| |||
8545 | 8545 | | |
8546 | 8546 | | |
8547 | 8547 | | |
8548 | | - | |
| 8548 | + | |
8549 | 8549 | | |
8550 | 8550 | | |
8551 | 8551 | | |
| |||
16876 | 16876 | | |
16877 | 16877 | | |
16878 | 16878 | | |
16879 | | - | |
| 16879 | + | |
16880 | 16880 | | |
16881 | 16881 | | |
16882 | 16882 | | |
| |||
16929 | 16929 | | |
16930 | 16930 | | |
16931 | 16931 | | |
16932 | | - | |
| 16932 | + | |
16933 | 16933 | | |
16934 | 16934 | | |
16935 | 16935 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
460 | | - | |
| 459 | + | |
| 460 | + | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
| 463 | + | |
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
| 467 | + | |
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
476 | | - | |
| 475 | + | |
| 476 | + | |
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
481 | | - | |
| 481 | + | |
482 | 482 | | |
483 | 483 | | |
484 | | - | |
485 | | - | |
| 484 | + | |
| 485 | + | |
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | | - | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
111 | | - | |
112 | | - | |
113 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
0 commit comments