Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getDeleteCleanupInterval (0.26 sec)

  1. cmd/handler-api.go

    	t.mu.RLock()
    	defer t.mu.RUnlock()
    
    	if t.staleUploadsExpiry == 0 {
    		return 24 * time.Hour // default 24 hours
    	}
    
    	return t.staleUploadsExpiry
    }
    
    func (t *apiConfig) getDeleteCleanupInterval() time.Duration {
    	t.mu.RLock()
    	defer t.mu.RUnlock()
    
    	if t.deleteCleanupInterval == 0 {
    		return 5 * time.Minute // every 5 minutes
    	}
    
    	return t.deleteCleanupInterval
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 08 09:22:27 GMT 2024
    - 10K bytes
    - Viewed (0)
  2. cmd/erasure-sets.go

    // deletes a dynamic sleeper is used with a factor of 10 ratio with max delay between
    // deletes to be 2 seconds.
    func (s *erasureSets) cleanupDeletedObjects(ctx context.Context) {
    	timer := time.NewTimer(globalAPIConfig.getDeleteCleanupInterval())
    	defer timer.Stop()
    
    	for {
    		select {
    		case <-ctx.Done():
    			return
    		case <-timer.C:
    			var wg sync.WaitGroup
    			for _, set := range s.sets {
    				wg.Add(1)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 37.5K bytes
    - Viewed (5)
Back to top