Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 85 for once (0.15 sec)

  1. cmd/os-reliable.go

    			// Retry only for the first retryable error.
    			if osIsNotExist(err) && i == 0 {
    				i++
    				// Determine if os.NotExist error is because of
    				// baseDir's parent being present, retry it once such
    				// that the MkdirAll is retried once for the parent
    				// of dirPath.
    				// Because it is worth a retry to skip a different
    				// baseDir which is slightly higher up the depth.
    				nbaseDir := path.Dir(baseDir)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/informers_test.go

    	assertPodAnnotated(t, client, pod)
    
    	// Assert expected calls actually made
    	fs.AssertExpectations(t)
    
    	// unlabelling the namespace should cause only one RemovePodFromMesh to happen
    	fs.On("RemovePodFromMesh",
    		ctx,
    		mock.Anything,
    	).Once().Return(nil)
    
    	// unlabel the namespace
    	labelsPatch := []byte(fmt.Sprintf(`{"metadata":{"labels":{"%s":null}}}`,
    		constants.DataplaneModeLabel))
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  3. internal/logger/logrotate.go

    type Writer struct {
    	// opts are the configuration options for this Writer
    	opts Options
    
    	// f is the currently open file used for appends.
    	// Writes to f are only synchronized once Close() is called,
    	// or when files are being rotated.
    	f *os.File
    
    	pw *xioutil.PipeWriter
    	pr *xioutil.PipeReader
    }
    
    // Write writes p into the current file, rotating if necessary.
    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)
  4. internal/event/target/postgresql.go

    	"strconv"
    	"strings"
    	"time"
    	"unicode"
    
    	_ "github.com/lib/pq" // Register postgres driver
    
    	"github.com/minio/minio/internal/event"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/minio/internal/once"
    	"github.com/minio/minio/internal/store"
    	xnet "github.com/minio/pkg/v2/net"
    )
    
    const (
    	psqlTableExists          = `SELECT 1 FROM %s;`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:51:07 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  5. cmd/xl-storage-disk-id-check.go

    	p.health.waiting.Add(1)
    
    	ctx = context.WithValue(ctx, healthDiskCtxKey{}, &healthDiskCtxValue{lastSuccess: &p.health.lastSuccess})
    	si := p.updateStorageMetrics(s, paths...)
    	var once sync.Once
    	return ctx, func(errp *error) {
    		p.health.waiting.Add(-1)
    		once.Do(func() {
    			if errp != nil {
    				err := *errp
    				if err == nil || errors.Is(err, io.EOF) {
    					p.health.logSuccess()
    				}
    			}
    			si(errp)
    		})
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  6. internal/grid/handlers.go

    func IsRemoteErr(err error) *RemoteErr {
    	var r RemoteErr
    	if errors.As(err, &r) {
    		return &r
    	}
    	return nil
    }
    
    type (
    	// SingleHandlerFn is handlers for one to one requests.
    	// A non-nil error value will be returned as RemoteErr(msg) to client.
    	// No client information or cancellation (deadline) is available.
    	// Include this in payload if needed.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  7. cmd/format-erasure.go

    				newFormat.ID = deploymentID
    			}
    			hostCount[disk.Hostname()]++
    			formats[i*setDriveCount+j] = newFormat
    		}
    		var once sync.Once
    		for host, count := range hostCount {
    			if count > wantAtMost {
    				if host == "" {
    					host = "local"
    				}
    				once.Do(func() {
    					if len(hostCount) == 1 {
    						return
    					}
    					logger.Info(" * Set %v:", i+1)
    					for j := 0; j < setDriveCount; j++ {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  8. cni/pkg/iptables/iptables.go

    	//
    	// Note that SortedList is used here because the istio sets class has no order guarantees,
    	// and our unit tests will flake if rules have a nondeterministic ordering.
    	// CLI: -t mangle -A ISTIO_PRERT -s 169.254.7.127 -p tcp -m tcp --dport <PROBEPORT> -j ACCEPT
    	//
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue May 07 19:54:50 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool-rebalance.go

    	doneCh := make(chan error, 1)
    	defer xioutil.SafeClose(doneCh)
    
    	// Save rebalance.bin periodically.
    	go func() {
    		// Update rebalance.bin periodically once every 5-10s, chosen randomly
    		// to avoid multiple pool leaders herding to update around the same
    		// time.
    		r := rand.New(rand.NewSource(time.Now().UnixNano()))
    		randSleepFor := func() time.Duration {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  10. cmd/erasure-server-pool.go

    		objects = objects[:maxKeys]
    		loi.IsTruncated = true
    	}
    	for _, obj := range objects {
    		if obj.IsDir && obj.ModTime.IsZero() && delimiter != "" {
    			// Only add each once.
    			// With slash delimiter we only get the directory once.
    			found := false
    			if delimiter != slashSeparator {
    				for _, p := range loi.Prefixes {
    					if found {
    						break
    					}
    					found = p == obj.Name
    				}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
Back to top