Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getIndex (0.16 sec)

  1. cmd/global-heal.go

    	indexed := make(map[string][]madmin.Disk)
    	for _, disk := range si.Disks {
    		setIdx := fmt.Sprintf("%d-%d", disk.PoolIndex, disk.SetIndex)
    		indexed[setIdx] = append(indexed[setIdx], disk)
    	}
    
    	for id, disks := range indexed {
    		ss := madmin.SetStatus{
    			ID:        id,
    			SetIndex:  disks[0].SetIndex,
    			PoolIndex: disks[0].PoolIndex,
    		}
    		for _, disk := range disks {
    			ss.Disks = append(ss.Disks, disk)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  2. cmd/background-newdisks-heal-ops.go

    // If the tracker has been deleted an error is returned.
    func (h *healingTracker) update(ctx context.Context) error {
    	h.mu.Lock()
    	if h.ID == "" || h.PoolIndex < 0 || h.SetIndex < 0 || h.DiskIndex < 0 {
    		h.ID, _ = h.disk.GetDiskID()
    		h.PoolIndex, h.SetIndex, h.DiskIndex = h.disk.GetDiskLoc()
    	}
    	h.mu.Unlock()
    	return h.save(ctx)
    }
    
    // save will unconditionally save the tracker and will be created if not existing.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. cmd/erasure-object.go

    					healOnce.Do(func() {
    						globalMRFState.addPartialOp(PartialOperation{
    							Bucket:     bucket,
    							Object:     object,
    							VersionID:  fi.VersionID,
    							Queued:     time.Now(),
    							SetIndex:   er.setIndex,
    							PoolIndex:  er.poolIndex,
    							BitrotScan: errors.Is(err, errFileCorrupt),
    						})
    					})
    					// Healing is triggered and we have written
    					// successfully the content to client for
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  4. cmd/admin-heal-ops.go

    func sortDisks(disks []madmin.Disk) {
    	sort.Slice(disks, func(i, j int) bool {
    		a, b := &disks[i], &disks[j]
    		if a.PoolIndex != b.PoolIndex {
    			return a.PoolIndex < b.PoolIndex
    		}
    		if a.SetIndex != b.SetIndex {
    			return a.SetIndex < b.SetIndex
    		}
    		return a.DiskIndex < b.DiskIndex
    	})
    }
    
    // getLocalHealingDisks returns local healing disks indexed by endpoint.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 25.6K bytes
    - Viewed (0)
Back to top