Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for bugLogIf (0.28 sec)

  1. 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))
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  2. 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) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 17 16:45:46 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  3. cmd/metacache-entries.go

    	if len(selected.cached.versions) == 0 {
    		return nil, false
    	}
    
    	// Reserialize
    	var err error
    	selected.metadata, err = selected.cached.AppendTo(metaDataPoolGet())
    	if err != nil {
    		bugLogIf(context.Background(), err)
    		return nil, false
    	}
    	return selected, true
    }
    
    // firstFound returns the first found and the number of set entries.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  4. 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() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  5. cmd/bucket-replication.go

    				atomic.AddInt32(&p.activeMRFWorkers, 1)
    				replicateObject(p.ctx, v, p.objLayer)
    				atomic.AddInt32(&p.activeMRFWorkers, -1)
    				p.stats.decQ(v.Bucket, v.Size, v.DeleteMarker, v.OpType)
    
    			default:
    				bugLogIf(p.ctx, fmt.Errorf("unknown mrf replication type: %T", oi), "unknown-mrf-replicate-type")
    			}
    		case <-p.mrfWorkerKillCh:
    			return
    		}
    	}
    }
    
    // AddWorker adds a replication worker to the pool.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
  6. cmd/bucket-lifecycle.go

    				})
    				if err == nil {
    					auditLogLifecycle(es.ctx, oi, ILMFreeVersionDelete, nil, traceFn)
    				}
    				if ignoreNotFoundErr(err) != nil {
    					transitionLogIf(es.ctx, err)
    				}
    			default:
    				bugLogIf(es.ctx, fmt.Errorf("Invalid work type - %v", v))
    			}
    		}
    	}
    }
    
    func initBackgroundExpiry(ctx context.Context, objectAPI ObjectLayer) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 23 15:35:37 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  7. cmd/xl-storage.go

    		return "", errCorruptedBackend
    	}
    
    	format := &formatErasureV3{}
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	if err = json.Unmarshal(b, &format); err != nil {
    		bugLogIf(GlobalContext, err) // log unexpected errors
    		return "", errCorruptedFormat
    	}
    
    	m, n, err := findDiskIndexByDiskID(format, format.Erasure.This)
    	if err != nil {
    		return "", err
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  8. cmd/site-replication.go

    				if err != nil {
    					replLogIf(ctx, err)
    					continue
    				}
    				tgtBytes, err := json.Marshal(&targets)
    				if err != nil {
    					bugLogIf(ctx, err)
    					continue
    				}
    				if _, err = globalBucketMetadataSys.Update(ctx, bucket, bucketTargetsFile, tgtBytes); err != nil {
    					replLogIf(ctx, err)
    					continue
    				}
    			}
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
Back to top