Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for HasPrefix (0.64 sec)

  1. cmd/admin-heal-ops.go

    	// Check if new heal sequence to be started overlaps with any
    	// existing, running sequence
    	hpath := pathJoin(h.bucket, h.object)
    	for k, hSeq := range ahs.healSeqMap {
    		if !hSeq.hasEnded() && (HasPrefix(k, hpath) || HasPrefix(hpath, k)) {
    			errMsg = "The provided heal sequence path overlaps with an existing " +
    				fmt.Sprintf("heal path: %s", k)
    			return nil, errorCodes.ToAPIErr(ErrHealOverlappingPaths), errMsg
    		}
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.1K bytes
    - Viewed (1)
Back to top