Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for toObjectErr (0.09 sec)

  1. cmd/erasure-object.go

    	if err != nil {
    		return objInfo, toObjectErr(err, bucket, object)
    	}
    	objInfo = fi.ToObjectInfo(bucket, object, opts.Versioned || opts.VersionSuspended)
    	if fi.Deleted {
    		if opts.VersionID == "" || opts.DeleteMarker {
    			return objInfo, toObjectErr(errFileNotFound, bucket, object)
    		}
    		// Make sure to return object info to provide extra information.
    		return objInfo, toObjectErr(errMethodNotAllowed, bucket, object)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool.go

    			return toObjectErr(err, bucket)
    		}
    
    		select {
    		case <-ctx.Done():
    			return ctx.Err()
    		case r, found := <-results:
    			if found {
    				if r.Err != nil {
    					s3LogIf(ctx, fmt.Errorf("unable to verify if the bucket %s is empty: %w", bucket, r.Err))
    					return toObjectErr(r.Err, bucket)
    				}
    				return toObjectErr(errVolumeNotEmpty, bucket)
    			}
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  3. cmd/test-utils_test.go

    	for i := 0; i < n-1; i++ {
    		j = i + rand.Intn(n-i)
    		s[i], s[j] = s[j], s[i]
    	}
    	return s
    }
    
    func TestToErrIsNil(t *testing.T) {
    	if toObjectErr(nil) != nil {
    		t.Errorf("Test expected to return nil, failed instead got a non-nil value %s", toObjectErr(nil))
    	}
    	if toStorageErr(nil) != nil {
    		t.Errorf("Test expected to return nil, failed instead got a non-nil value %s", toStorageErr(nil))
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
Back to top