File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1479,7 +1479,7 @@ struct PGLog : DoutPrefixProvider {
14791479 decode (on_disk_rollback_info_trimmed_to, bp);
14801480 } else if (key == " may_include_deletes_in_missing" ) {
14811481 missing.may_include_deletes = true ;
1482- } else if (key.substr ( 0 , 7 ) == std::string (" missing" )) {
1482+ } else if (key.starts_with (" missing" )) {
14831483 hobject_t oid;
14841484 pg_missing_item item;
14851485 decode (oid, bp);
@@ -1489,7 +1489,7 @@ struct PGLog : DoutPrefixProvider {
14891489 ceph_assert (missing.may_include_deletes );
14901490 }
14911491 missing.add (oid, std::move (item));
1492- } else if (key.substr ( 0 , 4 ) == std::string (" dup_" )) {
1492+ } else if (key.starts_with (" dup_" )) {
14931493 ++total_dups;
14941494 pg_log_dup_t dup;
14951495 decode (dup, bp);
You can’t perform that action at this time.
0 commit comments