runningBlockKeys returns pendingBlockKey strings for every block referenced by j.
(j *Job)
| 832 | |
| 833 | // runningBlockKeys returns pendingBlockKey strings for every block referenced by j. |
| 834 | func runningBlockKeys(j *Job) []string { |
| 835 | tenant := j.Tenant() |
| 836 | var keys []string |
| 837 | for _, bid := range j.GetCompactionInput() { |
| 838 | keys = append(keys, pendingBlockKey(tenant, bid)) |
| 839 | } |
| 840 | if bid := j.GetRedactionBlockID(); bid != "" { |
| 841 | keys = append(keys, pendingBlockKey(tenant, bid)) |
| 842 | } |
| 843 | return keys |
| 844 | } |
| 845 | |
| 846 | func (w *Work) removePendingBlockIndex(j *Job) { |
| 847 | key := j.PendingBlockKey() |
no test coverage detected