File tree Expand file tree Collapse file tree 2 files changed +0
-156
lines changed Expand file tree Collapse file tree 2 files changed +0
-156
lines changed Original file line number Diff line number Diff line change @@ -26,28 +26,6 @@ import (
26
26
// This file contains helper filter methods to process the unfiltered list of
27
27
// tablets returned by HealthCheckImpl.GetTabletHealth*.
28
28
29
- func TabletHealthReferenceListToValue (thl []* TabletHealth ) []TabletHealth {
30
- newTh := []TabletHealth {}
31
- for _ , th := range thl {
32
- newTh = append (newTh , * th )
33
- }
34
- return newTh
35
- }
36
-
37
- // RemoveUnhealthyTablets filters all unhealthy tablets out.
38
- // NOTE: Non-serving tablets are considered healthy.
39
- func RemoveUnhealthyTablets (tabletStatsList []TabletHealth ) []TabletHealth {
40
- result := make ([]TabletHealth , 0 , len (tabletStatsList ))
41
- for _ , ts := range tabletStatsList {
42
- // Note we do not check the 'Serving' flag here.
43
- if ts .LastError != nil || ts .Stats != nil && (ts .Stats .HealthError != "" || IsReplicationLagHigh (& ts )) {
44
- continue
45
- }
46
- result = append (result , ts )
47
- }
48
- return result
49
- }
50
-
51
29
func ParseTabletTypesAndOrder (tabletTypesStr string ) ([]topodatapb.TabletType , bool , error ) {
52
30
inOrder := false
53
31
if strings .HasPrefix (tabletTypesStr , InOrderHint ) {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments