Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for bugLogIf (0.17 sec)

  1. cmd/listen-notification-handlers.go

    		tmpEvt := struct{ Records []event.Event }{[]event.Event{{}}}
    		for {
    			select {
    			case ev := <-localCh:
    				buf.Reset()
    				tmpEvt.Records[0] = ev
    				if err := enc.Encode(tmpEvt); err != nil {
    					bugLogIf(ctx, err, "event: Encode failed")
    					continue
    				}
    				mergeCh <- append(grid.GetByteBuffer()[:0], buf.Bytes()...)
    			case <-ctx.Done():
    				grid.PutByteBuffer(buf.Bytes())
    				return
    			}
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6K bytes
    - Viewed (0)
  2. cmd/peer-s3-client.go

    			if node.GridHost == "" {
    				bugLogIf(context.Background(), fmt.Errorf("gridHost is empty for peer %s", node.Host), node.Host+":gridHost")
    				return nil
    			}
    			gc := gridConn.Load()
    			if gc != nil {
    				return gc
    			}
    			gm := globalGrid.Load()
    			if gm == nil {
    				return nil
    			}
    			gc = gm.Connection(node.GridHost)
    			if gc == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  3. cmd/peer-rest-client.go

    			if gridHost == "" {
    				bugLogIf(context.Background(), fmt.Errorf("gridHost is empty for peer %s", peer.String()), peer.String()+":gridHost")
    				return nil
    			}
    			gc := gridConn.Load()
    			if gc != nil {
    				return gc
    			}
    			gm := globalGrid.Load()
    			if gm == nil {
    				return nil
    			}
    			gc = gm.Connection(gridHost)
    			if gc == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  4. cmd/bucket-targets.go

    }
    
    // newHCClient initializes an anonymous client for performing health check on the remote endpoints
    func newHCClient() *madmin.AnonymousClient {
    	clnt, e := madmin.NewAnonymousClientNoEndpoint()
    	if e != nil {
    		bugLogIf(GlobalContext, errors.New("Unable to initialize health check client"))
    		return nil
    	}
    	clnt.SetCustomTransport(globalRemoteTargetTransport)
    	return clnt
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  5. cmd/erasure-object.go

    	writeQuorum := dataDrives
    	if dataDrives == parityDrives {
    		writeQuorum++
    	}
    
    	// Validate input data size and it can never be less than zero.
    	if data.Size() < -1 {
    		bugLogIf(ctx, errInvalidArgument, logger.ErrorKind)
    		return ObjectInfo{}, toObjectErr(errInvalidArgument)
    	}
    
    	// Initialize parts metadata
    	partsMetadata := make([]FileInfo, len(storageDisks))
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  6. cmd/auth-handler.go

    	return s3Err
    }
    
    func authenticateRequest(ctx context.Context, r *http.Request, action policy.Action) (s3Err APIErrorCode) {
    	if logger.GetReqInfo(ctx) == nil {
    		bugLogIf(ctx, errors.New("unexpected context.Context does not have a logger.ReqInfo"), logger.ErrorKind)
    		return ErrAccessDenied
    	}
    
    	var cred auth.Credentials
    	var owner bool
    	switch getRequestAuthType(r) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
  7. cmd/metrics-v2.go

    	for promMetric := range ch {
    		dtoMetric := &dto.Metric{}
    		err := promMetric.Write(dtoMetric)
    		if err != nil {
    			// Log error and continue to receive other metric
    			// values
    			bugLogIf(GlobalContext, err)
    			continue
    		}
    
    		h := dtoMetric.GetHistogram()
    		for _, b := range h.Bucket {
    			labels := make(map[string]string)
    			for _, lp := range dtoMetric.GetLabel() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  8. cmd/admin-heal-ops.go

    	}
    
    	b, err := json.Marshal(madmin.HealStartSuccess{
    		ClientToken:   clientToken,
    		ClientAddress: h.clientAddress,
    		StartTime:     h.startTime,
    	})
    	if err != nil {
    		bugLogIf(h.ctx, err)
    		return nil, toAdminAPIErr(h.ctx, err), ""
    	}
    	return b, noError, ""
    }
    
    // PopHealStatusJSON - Called by heal-status API. It fetches the heal
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.1K bytes
    - Viewed (1)
  9. cmd/api-response.go

    	if statusCode == 0 {
    		statusCode = 200
    	}
    	// Similar check to http.checkWriteHeaderCode
    	if statusCode < 100 || statusCode > 999 {
    		bugLogIf(context.Background(), fmt.Errorf("invalid WriteHeader code %v", statusCode))
    		statusCode = http.StatusInternalServerError
    	}
    	setCommonHeaders(w)
    	if mType != mimeNone {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  10. cmd/handler-utils.go

    	return metadata, nil
    }
    
    // extractMetadata extracts metadata from map values.
    func extractMetadataFromMime(ctx context.Context, v textproto.MIMEHeader, m map[string]string) error {
    	if v == nil {
    		bugLogIf(ctx, errInvalidArgument)
    		return errInvalidArgument
    	}
    
    	nv := make(textproto.MIMEHeader, len(v))
    	for k, kv := range v {
    		// Canonicalize all headers, to remove any duplicates.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
Back to top