Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for IsZero (0.14 sec)

  1. cmd/erasure-healing-common.go

    	timeOccurrenceMap := make(map[int64]int, len(times))
    	groupNano := group.Nanoseconds()
    	// Ignore the uuid sentinel and count the rest.
    	for _, t := range times {
    		if t.Equal(timeSentinel) || t.IsZero() {
    			continue
    		}
    		nano := t.UnixNano()
    		if group > 0 {
    			for k := range timeOccurrenceMap {
    				if k == nano {
    					// We add to ourself later
    					continue
    				}
    				diff := k - nano
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. cmd/global-heal.go

    	healBuckets := make([]string, len(buckets))
    	copy(healBuckets, buckets)
    
    	objAPI := newObjectLayerFn()
    	if objAPI == nil {
    		return errServerNotInitialized
    	}
    
    	started := tracker.Started
    	if started.IsZero() || started.Equal(timeSentinel) {
    		healingLogIf(ctx, fmt.Errorf("unexpected tracker healing start time found: %v", started))
    		started = time.Time{}
    	}
    
    	// Final tracer update before quitting
    	defer func() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  3. cmd/erasure-object.go

    	// in all other cases mtime is latest.
    
    	fi.VersionID = versionID // set any new versionID we might have created
    	fi.ModTime = modTime     // set modTime for the new versionID
    	if !dstOpts.MTime.IsZero() {
    		modTime = dstOpts.MTime
    		fi.ModTime = dstOpts.MTime
    	}
    	// check inline before overwriting metadata.
    	inlineData := fi.InlineData()
    
    	fi.Metadata = srcInfo.UserDefined
    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/erasure-metadata.go

    		if props, ok := otherPropsMap.GetValueWithQuorum(quorum); ok {
    			candidate.SuccessorModTime = props.succModTime
    			candidate.IsLatest = props.succModTime.IsZero()
    			candidate.NumVersions = props.numVersions
    		}
    		return candidate, nil
    	}
    	return FileInfo{}, InsufficientReadQuorum{Err: errErasureReadQuorum, Type: RQInconsistentMeta}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  5. cmd/admin-heal-ops.go

    func (h *healSequence) hasEnded() bool {
    	h.mutex.RLock()
    	defer h.mutex.RUnlock()
    	// background heal never ends
    	if h.clientToken == bgHealingUUID {
    		return false
    	}
    	return !h.endTime.IsZero()
    }
    
    // stops the heal sequence - safe to call multiple times.
    func (h *healSequence) stop() {
    	h.cancelCtx()
    }
    
    // pushHealResultItem - pushes a heal result item for consumption in
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v2.go

    						ver.ObjectV2.MetaSys[k] = []byte(v)
    					} else {
    						ver.ObjectV2.MetaUser[k] = v
    					}
    				}
    				if !fi.ModTime.IsZero() {
    					ver.ObjectV2.ModTime = fi.ModTime.UnixNano()
    				}
    				return x.setIdx(i, *ver)
    			}
    		}
    	}
    
    	return errFileVersionNotFound
    }
    
    // AddVersion adds a new version
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
Back to top