Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for Op (0.23 sec)

  1. cmd/mrf.go

    type mrfState struct {
    	opCh chan partialOperation
    }
    
    // Add a partial S3 operation (put/delete) when one or more disks are offline.
    func (m *mrfState) addPartialOp(op partialOperation) {
    	if m == nil {
    		return
    	}
    
    	select {
    	case m.opCh <- op:
    	default:
    	}
    }
    
    var healSleeper = newDynamicSleeper(5, time.Second, false)
    
    // healRoutine listens to new disks reconnection events and
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  2. cmd/warm-backend.go

    	tierPut
    	tierDelete
    )
    
    func (op tierOp) String() string {
    	switch op {
    	case tierGet:
    		return "GET"
    	case tierPut:
    		return "PUT"
    	case tierDelete:
    		return "DELETE"
    	}
    	return "UNKNOWN"
    }
    
    type tierPermErr struct {
    	Op  tierOp
    	Err error
    }
    
    func (te tierPermErr) Error() string {
    	return fmt.Sprintf("failed to perform %s: %v", te.Op, te.Err)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  3. cmd/xl-storage-disk-id-check.go

    	}
    )
    
    // logSuccess will update the last successful operation time.
    func (h *healthDiskCtxValue) logSuccess() {
    	atomic.StoreInt64(h.lastSuccess, time.Now().UnixNano())
    }
    
    // noopDoneFunc is a no-op done func.
    // Can be reused.
    var noopDoneFunc = func(_ *error) {}
    
    // TrackDiskHealth for this request.
    // When a non-nil error is returned 'done' MUST be called
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  4. cmd/object-handlers.go

    		srcInfo.UserDefined[xhttp.AmzBucketReplicationStatus] = rs
    	}
    
    	op := replication.ObjectReplicationType
    	if srcInfo.metadataOnly {
    		op = replication.MetadataReplicationType
    	}
    	if dsc := mustReplicate(ctx, dstBucket, dstObject, srcInfo.getMustReplicateOptions(op, dstOpts)); dsc.ReplicateAny() {
    		srcInfo.UserDefined[ReservedMetadataPrefixLower+ReplicationStatus] = dsc.PendingStatus()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  5. cmd/bucket-lifecycle.go

    		if len(logger.AuditTargets()) == 0 {
    			return
    		}
    
    		op := auditTierOp{
    			Tier:        tier,
    			OutputBytes: bytes,
    		}
    
    		if err == nil {
    			since := time.Since(startTime)
    			op.TimeToResponseNS = since.Nanoseconds()
    			globalTierMetrics.Observe(tier, since)
    			globalTierMetrics.logSuccess(tier)
    		} else {
    			op.Error = err.Error()
    			globalTierMetrics.logFailure(tier)
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  6. internal/logger/logrotate.go

    	return os.Remove(oldLgFile)
    }
    
    func (w *Writer) rotate() error {
    	if w.f != nil {
    		if err := w.closeCurrentFile(); err != nil {
    			return err
    		}
    
    		// This function is a no-op if opts.Compress is false
    		// writes an error in JSON form to stderr, if we cannot
    		// compress.
    		if err := w.compress(); err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 11:38:40 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  7. cmd/admin-bucket-handlers.go

    		if tgt.Empty() {
    			writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrRemoteTargetNotFoundError, err), r.URL)
    			return
    		}
    		for _, op := range ops {
    			switch op {
    			case madmin.CredentialsUpdateType:
    				if !globalSiteReplicationSys.isEnabled() {
    					// credentials update is possible only in bucket replication. User will never
    					// know the site replicator creds.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  8. cmd/bucket-replication.go

    }
    
    func (o ObjectInfo) getMustReplicateOptions(op replication.Type, opts ObjectOptions) mustReplicateOptions {
    	return getMustReplicateOptions(o.UserDefined, o.UserTags, o.ReplicationStatus, op, opts)
    }
    
    func getMustReplicateOptions(userDefined map[string]string, userTags string, status replication.StatusType, op replication.Type, opts ObjectOptions) mustReplicateOptions {
    	meta := cloneMSS(userDefined)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  9. cmd/site-replication.go

    	// At this point, the local bucket is deleted.
    
    	c.RLock()
    	defer c.RUnlock()
    	if !c.enabled {
    		return nil
    	}
    
    	op := madmin.DeleteBucketBktOp
    	if forceDelete {
    		op = madmin.ForceDeleteBucketBktOp
    	}
    
    	// Send bucket delete to other clusters.
    	cerr := c.concDo(nil, func(deploymentID string, p madmin.PeerInfo) error {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  10. cmd/xl-storage.go

    		return nil, time.Time{}, err
    	}
    	defer f.Close()
    	stat, err := f.Stat()
    	if err != nil {
    		return nil, time.Time{}, err
    	}
    	if stat.IsDir() {
    		return nil, time.Time{}, &os.PathError{
    			Op:   "open",
    			Path: itemPath,
    			Err:  syscall.EISDIR,
    		}
    	}
    	buf, err := readXLMetaNoData(f, stat.Size())
    	if err != nil {
    		return nil, stat.ModTime().UTC(), fmt.Errorf("%w -> %s", err, itemPath)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
Back to top