writebackInProgress returns true if writeback commit is not complete
(m map[string]string)
| 577 | |
| 578 | // writebackInProgress returns true if writeback commit is not complete |
| 579 | func writebackInProgress(m map[string]string) bool { |
| 580 | if v, ok := m[writeBackStatusHeader]; ok { |
| 581 | switch cacheCommitStatus(v) { |
| 582 | case CommitPending, CommitFailed: |
| 583 | return true |
| 584 | } |
| 585 | } |
| 586 | return false |
| 587 | } |
no test coverage detected