failed() returns all kvIndices that are failed to be fixed
()
| 89 | |
| 90 | // failed() returns all kvIndices that are failed to be fixed |
| 91 | func (m mismatchTracker) failed() []uint64 { |
| 92 | var res []uint64 |
| 93 | for kvIndex, scanned := range m { |
| 94 | if scanned.status == failed { |
| 95 | res = append(res, kvIndex) |
| 96 | } |
| 97 | } |
| 98 | slices.Sort(res) |
| 99 | return res |
| 100 | } |
| 101 | |
| 102 | // needFix() returns all kvIndices that need to be fixed |
| 103 | func (m mismatchTracker) needFix() []uint64 { |