Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ignoredErrs (0.05 sec)

  1. cmd/erasure-metadata-utils.go

    func reduceReadQuorumErrs(ctx context.Context, errs []error, ignoredErrs []error, readQuorum int) (maxErr error) {
    	return reduceQuorumErrs(ctx, errs, ignoredErrs, readQuorum, errErasureReadQuorum)
    }
    
    // reduceWriteQuorumErrs behaves like reduceErrs but only for returning
    // values of maximally occurring errors validated against writeQuorum.
    func reduceWriteQuorumErrs(ctx context.Context, errs []error, ignoredErrs []error, writeQuorum int) (maxErr error) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  2. cmd/erasure-metadata-utils_test.go

    	for i, testCase := range testCases {
    		gotErr := reduceReadQuorumErrs(t.Context(), testCase.errs, testCase.ignoredErrs, 5)
    		if gotErr != testCase.err {
    			t.Errorf("Test %d : expected %s, got %s", i+1, testCase.err, gotErr)
    		}
    		gotNewErr := reduceWriteQuorumErrs(t.Context(), testCase.errs, testCase.ignoredErrs, 6)
    		if gotNewErr != errErasureWriteQuorum {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  3. cmd/utils.go

    	Prefix string                     `json:"prefix"`
    	Policy miniogopolicy.BucketPolicy `json:"policy"`
    }
    
    // IsErrIgnored returns whether given error is ignored or not.
    func IsErrIgnored(err error, ignoredErrs ...error) bool {
    	return IsErr(err, ignoredErrs...)
    }
    
    // IsErr returns whether given error is exact error.
    func IsErr(err error, errs ...error) bool {
    	for _, exactErr := range errs {
    		if errors.Is(err, exactErr) {
    			return true
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 33K bytes
    - Viewed (0)
  4. cmd/xl-storage.go

    	defer func() {
    		ignoredErrs := []error{
    			errFileNotFound,
    			errVolumeNotFound,
    			errFileVersionNotFound,
    			errDiskNotFound,
    			errUnformattedDisk,
    			errMaxVersionsExceeded,
    			errFileAccessDenied,
    		}
    		if err != nil && !IsErr(err, ignoredErrs...) && !contextCanceled(ctx) {
    			// Only log these errors if context is not yet canceled.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Jun 13 11:33:47 UTC 2025
    - 91.7K bytes
    - Viewed (0)
  5. cmd/object-handlers.go

    		sha256hex           = ""
    		reader    io.Reader = r.Body
    		s3Err     APIErrorCode
    		putObject = objectAPI.PutObject
    	)
    
    	var opts untarOptions
    	opts.ignoreDirs = strings.EqualFold(r.Header.Get(xhttp.MinIOSnowballIgnoreDirs), "true")
    	opts.ignoreErrs = strings.EqualFold(r.Header.Get(xhttp.MinIOSnowballIgnoreErrors), "true")
    	opts.prefixAll = r.Header.Get(xhttp.MinIOSnowballPrefix)
    	if opts.prefixAll != "" {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 120.6K bytes
    - Viewed (0)
Back to top