MCPcopy Create free account
hub / github.com/AbelChe/evil_minio / writebackInProgress

Function writebackInProgress

cmd/disk-cache-utils.go:579–587  ·  view source on GitHub ↗

writebackInProgress returns true if writeback commit is not complete

(m map[string]string)

Source from the content-addressed store, hash-verified

577
578// writebackInProgress returns true if writeback commit is not complete
579func 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}

Callers 4

GetObjectNInfoMethod · 0.85
GetObjectInfoMethod · 0.85
statCacheMethod · 0.85
GetMethod · 0.85

Calls 1

cacheCommitStatusTypeAlias · 0.85

Tested by

no test coverage detected