Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for toObjectErr (0.06 sec)

  1. 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)
  2. cmd/data-usage-cache.go

    		r.Close()
    		return err != nil, nil
    	}
    
    	// Caches are read+written without locks,
    	retries := 0
    	for retries < 5 {
    		retry, err := load(name, time.Minute)
    		if err != nil {
    			return toObjectErr(err, dataUsageBucket, name)
    		}
    		if !retry {
    			break
    		}
    		retry, err = load(name+".bkp", 30*time.Second)
    		if err == nil && !retry {
    			// Only return when we have valid data from the backup
    			break
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  3. cmd/object-handlers.go

    	if globalDNSConfig == nil {
    		return false
    	}
    	if globalBucketFederation {
    		_, err := objAPI.GetBucketInfo(ctx, bucket, BucketOptions{})
    		return err == toObjectErr(errVolumeNotFound, bucket)
    	}
    	return false
    }
    
    // CopyObjectHandler - Copy Object
    // ----------
    // This implementation of the PUT operation adds an object to a bucket
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top