Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 123 for conceal (0.24 sec)

  1. internal/dsync/drwmutex.go

    			}
    		}
    	}
    }
    
    func (dm *DRWMutex) startContinuousLockRefresh(lockLossCallback func(), id, source string, quorum int) {
    	ctx, cancel := context.WithCancel(context.Background())
    
    	dm.m.Lock()
    	dm.cancelRefresh = cancel
    	dm.m.Unlock()
    
    	go func() {
    		defer cancel()
    
    		refreshTimer := time.NewTimer(dm.refreshInterval)
    		defer refreshTimer.Stop()
    
    		for {
    			select {
    			case <-ctx.Done():
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  2. cmd/admin-handlers-users_test.go

    	}
    	return testCases
    }()
    
    const (
    	EnvTestEtcdBackend = "_MINIO_ETCD_TEST_SERVER"
    )
    
    func (s *TestSuiteIAM) setUpEtcd(c *check, etcdServer string) {
    	ctx, cancel := context.WithTimeout(context.Background(), testDefaultTimeout)
    	defer cancel()
    
    	configCmds := []string{
    		"etcd",
    		"endpoints=" + etcdServer,
    		"path_prefix=" + mustGetUUID(),
    	}
    	_, err := s.adm.SetConfigKV(ctx, strings.Join(configCmds, " "))
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Feb 12 16:36:16 GMT 2024
    - 45.7K bytes
    - Viewed (0)
  3. cmd/admin-handlers_test.go

    	ctx, cancel := context.WithCancel(ctx)
    
    	// reset global variables to start afresh.
    	resetTestGlobals()
    
    	// Set globalIsErasure to indicate that the setup uses an erasure
    	// code backend.
    	globalIsErasure = true
    
    	// Initializing objectLayer for HealFormatHandler.
    	objLayer, erasureDirs, xlErr := initTestErasureObjLayer(ctx)
    	if xlErr != nil {
    		cancel()
    		return nil, xlErr
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  4. cmd/metacache-set.go

    	metaMu := &mc.mu
    	rpc := mc.rpc
    	cancel := mc.cancel
    	defer func() {
    		o.debugln(color.Green("saveMetaCacheStream:")+"err:", err)
    		if err != nil && !errors.Is(err, io.EOF) {
    			go mc.setErr(err.Error())
    			cancel()
    		}
    	}()
    
    	defer cancel()
    	// Save continuous updates
    	go func() {
    		var err error
    		ticker := time.NewTicker(10 * time.Second)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 18 04:42:11 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  5. cmd/batch-handlers.go

    	}
    	return nil
    }
    
    // delete canceler from the map, cancel job if requested
    func (j *BatchJobPool) canceler(jobID string, cancel bool) error {
    	if j == nil {
    		return errInvalidArgument
    	}
    	j.jmu.Lock()
    	defer j.jmu.Unlock()
    	if canceler, ok := j.jobCancelers[jobID]; ok {
    		if cancel {
    			canceler()
    		}
    	}
    	delete(j.jobCancelers, jobID)
    	return nil
    }
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 08 14:11:38 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  6. cmd/admin-handlers-users-race_test.go

    			func(t *testing.T) {
    				runAllIAMConcurrencyTests(testCase, &check{t, testCase.serverType})
    			},
    		)
    	}
    }
    
    func (s *TestSuiteIAM) TestDeleteUserRace(c *check) {
    	ctx, cancel := context.WithTimeout(context.Background(), 90*time.Second)
    	defer cancel()
    
    	bucket := getRandomBucketName()
    	err := s.client.MakeBucket(ctx, bucket, minio.MakeBucketOptions{})
    	if err != nil {
    		c.Fatalf("bucket creat error: %v", err)
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  7. cmd/notification.go

    			return err
    		}, index)
    	}
    	return sys.collectPeerMetrics(ctx, peerChannels, g)
    }
    
    // GetSysConfig - Get information about system config
    // (only the config that are of concern to minio)
    func (sys *NotificationSys) GetSysConfig(ctx context.Context) []madmin.SysConfig {
    	reply := make([]madmin.SysConfig, len(sys.peerClients))
    
    	g := errgroup.WithNErrs(len(sys.peerClients))
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 12 18:13:36 GMT 2024
    - 44.5K bytes
    - Viewed (0)
  8. cmd/perf-tests.go

    			continue
    		}
    		info := info
    		wg.Add(connectionsPerPeer)
    		for i := 0; i < connectionsPerPeer; i++ {
    			go func() {
    				defer wg.Done()
    				ctx, cancel := context.WithTimeout(ctx, duration+10*time.Second)
    				defer cancel()
    				perfNetRequest(
    					ctx,
    					info.DeploymentID,
    					adminPathPrefix+adminAPIVersionPrefix+adminAPISiteReplicationDevNull,
    					r,
    				)
    			}()
    		}
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 28 18:04:17 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  9. cmd/metacache-walk.go

    	_, err := opts.UnmarshalMsg(payload)
    	if err != nil {
    		return grid.NewRemoteErr(err)
    	}
    
    	if !s.checkID(opts.DiskID) {
    		return grid.NewRemoteErr(errDiskNotFound)
    	}
    
    	ctx, cancel := context.WithCancel(ctx)
    	defer cancel()
    	return grid.NewRemoteErr(s.getStorage().WalkDir(ctx, opts, grid.WriterToChannel(ctx, out)))
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  10. cmd/sftp-server-driver.go

    	case "Rmdir":
    		bucket, prefix := path2BucketObject(r.Filepath)
    		if bucket == "" {
    			return errors.New("deleting all buckets not allowed")
    		}
    
    		cctx, cancel := context.WithCancel(context.Background())
    		defer cancel()
    
    		if prefix == "" {
    			// if all objects are not deleted yet this call may fail.
    			return clnt.RemoveBucket(cctx, bucket)
    		}
    
    		objectsCh := make(chan minio.ObjectInfo)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 12.9K bytes
    - Viewed (0)
Back to top