Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 47 for refresh (0.29 sec)

  1. cmd/tier.go

    	defer config.Unlock()
    
    	switch err {
    	case nil:
    		break
    	case errConfigNotFound: // nothing to reload
    		// To maintain the invariance that lastRefreshedAt records the
    		// timestamp of last successful refresh
    		config.lastRefreshedAt = UTCNow()
    		return nil
    	default:
    		return err
    	}
    
    	// Reset drivercache built using current config
    	for k := range config.drivercache {
    		delete(config.drivercache, k)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  2. internal/kms/kes.go

    	if err != nil {
    		logger.LogOnceIf(ctx, fmt.Errorf("%s, using default of 10s", err.Error()), "refresh-kms-master-key")
    		cacheDuration = defaultCacheDuration
    	}
    	if cacheDuration < time.Second {
    		logger.LogOnceIf(ctx, errors.New("cache duration is less than 1s, using default of 10s"), "refresh-kms-master-key")
    		cacheDuration = defaultCacheDuration
    	}
    	timer := time.NewTimer(cacheDuration)
    	defer timer.Stop()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 16 15:43:39 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  3. cmd/lock-rest-server.go

    type lockRESTServer struct {
    	ll *localLocker
    }
    
    // RefreshHandler - refresh the current lock
    func (l *lockRESTServer) RefreshHandler(args *dsync.LockArgs) (*dsync.LockResp, *grid.RemoteErr) {
    	resp := lockRPCRefresh.NewResponse()
    	refreshed, err := l.ll.Refresh(context.Background(), *args)
    	if err != nil {
    		return l.makeResp(resp, err)
    	}
    	if !refreshed {
    		return l.makeResp(resp, errLockNotFound)
    	}
    	return l.makeResp(resp, err)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  4. cmd/local-locker.go

    				idx++
    				continue
    			}
    			reply = true
    			l.removeEntry(resource, dsync.LockArgs{UID: args.UID}, &lris)
    			idx++
    		}
    	}
    }
    
    func (l *localLocker) Refresh(ctx context.Context, args dsync.LockArgs) (refreshed bool, err error) {
    	select {
    	case <-ctx.Done():
    		return false, ctx.Err()
    	default:
    		l.mutex.Lock()
    		defer l.mutex.Unlock()
    
    		// Check whether uid is still active.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 19 22:54:46 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  5. cmd/globals.go

    	// GlobalStaleUploadsCleanupInterval - Cleanup interval when the stale uploads cleanup is initiated.
    	GlobalStaleUploadsCleanupInterval = time.Hour * 6 // 6 hrs.
    
    	// Refresh interval to update in-memory iam config cache.
    	globalRefreshIAMInterval = 10 * time.Minute
    
    	// Limit of location constraint XML for unauthenticated PUT bucket operations.
    	maxLocationConstraintSize = 3 * humanize.MiByte
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  6. cmd/iam-store.go

    	//
    	// An in-memory cache must be replaced only if we know for sure that the
    	// values loaded from disk are not stale. They might be stale if the
    	// cached.updatedAt is more recent than the refresh cycle began.
    	if cache.updatedAt.Before(loadedAt) {
    		// No one has updated anything since the config was loaded,
    		// so we just replace whatever is on the disk into memory.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  7. cmd/iam.go

    				iamLogIf(ctx, fmt.Errorf("Failure in periodic refresh for IAM (took %.2fs): %v", time.Since(refreshStart).Seconds(), err), logger.WarningKind)
    			} else {
    				took := time.Since(refreshStart).Seconds()
    				if took > maxDurationSecondsForLog {
    					// Log if we took a lot of time to load.
    					logger.Info("IAM refresh took %.2fs", took)
    				}
    			}
    
    			// Purge expired STS credentials.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  8. operator/cmd/mesh/shared.go

    	_, _ = fmt.Fprintf(w.writer, format, a...)
    }
    
    func (w *writerPrinter) Println(str string) {
    	_, _ = fmt.Fprintln(w.writer, str)
    }
    
    func refreshGoldenFiles() bool {
    	ev := os.Getenv("REFRESH_GOLDEN")
    	return ev == "true" || ev == "1"
    }
    
    func kubeBuilderInstalled() bool {
    	ev := os.Getenv("KUBEBUILDER")
    	return ev == "true" || ev == "1"
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  9. cmd/site-replication.go

    				took := time.Since(refreshStart).Seconds()
    				if took > maxRefreshDurationSecondsForLog {
    					// Log if we took a lot of time.
    					logger.Info("Site replication healing refresh took %.2fs", took)
    				}
    
    				// wait for 200 millisecond, if we are experience lot of I/O
    				waitForLowIO(runtime.GOMAXPROCS(0), 200*time.Millisecond, currentHTTPIO)
    			}
    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/erasure-server-pool-decom_test.go

    			name:           "Correct-Decom-Pool-Removed",
    			expectedErr:    false,
    			expectedUpdate: true,
    		},
    		{
    			meta:           poolMeta{}, // no-pool info available fresh setup.
    			pools:          pools,
    			name:           "Correct-Fresh-Setup",
    			expectedErr:    false,
    			expectedUpdate: true,
    		},
    		{
    			meta:           nmeta2,
    			pools:          orderChangePools,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jul 03 16:47:40 GMT 2023
    - 4.8K bytes
    - Viewed (0)
Back to top