Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for calcCommonWritesDeletes (0.17 sec)

  1. cmd/metacache-set.go

    		return 1
    	case "reduced":
    		return 2
    	case "optimal":
    		return (driveCount + 1) / 2
    	case "auto":
    		return -1
    	}
    	// defaults to 'strict'
    	return driveCount
    }
    
    func calcCommonWritesDeletes(infos []DiskInfo, readQuorum int) (commonWrite, commonDelete uint64) {
    	deletes := make([]uint64, len(infos))
    	writes := make([]uint64, len(infos))
    	for index, di := range infos {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 16:23:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  2. cmd/erasure-sets.go

    			}
    
    			if disk := storageDisks[index]; disk != nil {
    				if disk.IsLocal() {
    					xldisk, ok := disk.(*xlStorageDiskIDCheck)
    					if ok {
    						_, commonDeletes := calcCommonWritesDeletes(currentDisksInfo[m], (s.setDriveCount+1)/2)
    						xldisk.totalDeletes.Store(commonDeletes)
    						xldisk.storage.setDeleteAttribute(commonDeletes)
    
    						if globalDriveMonitoring {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 27 10:41:37 UTC 2024
    - 37K bytes
    - Viewed (1)
Back to top