Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 914 for shouldn (0.42 sec)

  1. internal/lock/lock_test.go

    	if isClosed {
    		t.Fatal("File ref count shouldn't be zero")
    	}
    
    	// Decrease reference count by 1.
    	if err = rlk.Close(); err != nil {
    		t.Fatal(err)
    	}
    
    	// Now file should be closed.
    	isClosed = rlk.IsClosed()
    	if !isClosed {
    		t.Fatal("File ref count should be zero")
    	}
    
    	// Closing a file again should result in invalid argument.
    	if err = rlk.Close(); err != os.ErrInvalid {
    		t.Fatal(err)
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  2. internal/ioutil/ioutil_test.go

    	_, err := w.Write([]byte("1"))
    	if err != context.DeadlineExceeded {
    		t.Error("DeadlineWriter shouldn't be successful - should return context.DeadlineExceeded")
    	}
    	_, err = w.Write([]byte("1"))
    	if err != context.DeadlineExceeded {
    		t.Error("DeadlineWriter shouldn't be successful - should return context.DeadlineExceeded")
    	}
    	w.Close()
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 02 11:02:31 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  3. cmd/bucket-policy-handlers_test.go

    			secretKey:          credentials.SecretKey,
    			expectedRespStatus: http.StatusBadRequest,
    		},
    		// Test case - 8.
    		// non-existent bucket is used.
    		// writing BucketPolicy should fail.
    		// should result in 404 StatusNotFound
    		{
    			bucketName:         "non-existent-bucket",
    			bucketPolicyReader: bytes.NewReader([]byte(fmt.Sprintf(bucketPolicyTemplate, "non-existent-bucket", "non-existent-bucket"))),
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  4. cmd/sts-handlers.go

    	// The plain text that you use for both inline and managed session
    	// policies shouldn't exceed 2048 characters.
    	if len(sessionPolicyStr) > 2048 {
    		writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue, fmt.Errorf("Session policy should not exceed 2048 characters"))
    		return
    	}
    
    	if len(sessionPolicyStr) > 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 18:36:18 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  5. cmd/xl-storage-format-v1.go

    		return err
    	}
    
    	if !c.Algorithm.Available() {
    		internalLogIf(GlobalContext, errBitrotHashAlgoInvalid)
    		return errBitrotHashAlgoInvalid
    	}
    	return nil
    }
    
    // constant and shouldn't be changed.
    const (
    	legacyDataDir = "legacy"
    )
    
    func (m *xlMetaV1Object) ToFileInfo(volume, path string) (FileInfo, error) {
    	if !m.valid() {
    		return FileInfo{}, errFileCorrupt
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  6. internal/lock/lock_solaris.go

    }
    
    // LockedOpenFile - initializes a new lock and protects
    // the file from concurrent access across mount points.
    // This implementation doesn't support all the open
    // flags and shouldn't be considered as replacement
    // for os.OpenFile().
    func LockedOpenFile(path string, flag int, perm os.FileMode) (*LockedFile, error) {
    	return lockedOpenFile(path, flag, perm, syscall.F_SETLKW)
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 2.8K bytes
    - Viewed (0)
  7. cmd/dynamic-timeouts.go

    		timeout := atomic.LoadInt64(&dt.timeout) * 125 / 100
    
    		// Set upper cap.
    		if timeout > int64(maxDynamicTimeout) {
    			timeout = int64(maxDynamicTimeout)
    		}
    		// Safety, shouldn't happen
    		if timeout < dt.minimum {
    			timeout = dt.minimum
    		}
    		atomic.StoreInt64(&dt.timeout, timeout)
    	} else if failPct < dynamicTimeoutDecreaseThresholdPct {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Aug 19 23:21:05 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/lifecycle.go

    	DeleteRestoredVersionAction
    	// DeleteAllVersionsAction deletes all versions when an object expires
    	DeleteAllVersionsAction
    
    	// ActionCount must be the last action and shouldn't be used as a regular action.
    	ActionCount
    )
    
    // DeleteRestored - Returns true if action demands delete on restored objects
    func (a Action) DeleteRestored() bool {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 06:41:22 GMT 2024
    - 17K bytes
    - Viewed (0)
  9. cmd/dummy-handlers.go

    	"github.com/minio/mux"
    	"github.com/minio/pkg/v2/policy"
    )
    
    // Data types used for returning dummy tagging XML.
    // These variables shouldn't be used elsewhere.
    // They are only defined to be used in this file alone.
    
    // GetBucketWebsite  - GET bucket website, a dummy api
    func (api objectAPIHandlers) GetBucketWebsiteHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := newContext(r, w, "GetBucketWebsite")
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  10. cmd/xl-storage-free-version_test.go

    	}
    	report()
    
    	// Adding a free version to a version with no tiered content.
    	newfi := fi
    	newfi.SetTierFreeVersionID("00000000-0000-0000-0000-0000000000f3")
    	fatalErr(xl.AddFreeVersion(newfi)) // this shouldn't add a free-version
    	report()
    
    	// Check number of free-versions
    	freeVersions, err = xl.listFreeVersions(newtierfi.Volume, newtierfi.Name)
    	if err != nil {
    		t.Fatalf("failed to list free versions %v", err)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 7.8K bytes
    - Viewed (0)
Back to top