Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 211 for cout (0.15 sec)

  1. cmd/admin-router.go

    		// Config KV history operations.
    		if enableConfigOps {
    			adminRouter.Methods(http.MethodGet).Path(adminVersion+"/list-config-history-kv").HandlerFunc(adminMiddleware(adminAPI.ListConfigHistoryKVHandler, traceAllFlag)).Queries("count", "{count:[0-9]+}")
    			adminRouter.Methods(http.MethodDelete).Path(adminVersion+"/clear-config-history-kv").HandlerFunc(adminMiddleware(adminAPI.ClearConfigHistoryKVHandler)).Queries("restoreId", "{restoreId:.*}")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  2. cmd/bucket-replication.go

    // checkOld can be set to an expected value.
    // If the worker count changed
    func (p *ReplicationPool) ResizeWorkers(n, checkOld int) {
    	p.mu.Lock()
    	defer p.mu.Unlock()
    
    	if (checkOld > 0 && len(p.workers) != checkOld) || n == len(p.workers) || n < 1 {
    		// Either already satisfied or worker count changed while we waited for the lock.
    		return
    	}
    	for len(p.workers) < n {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  3. cmd/metacache-entries.go

    // If the context is canceled the function will return the error,
    // otherwise the function will return nil.
    func mergeEntryChannels(ctx context.Context, in []chan metaCacheEntry, out chan<- metaCacheEntry, readQuorum int) error {
    	defer xioutil.SafeClose(out)
    	top := make([]*metaCacheEntry, len(in))
    	nDone := 0
    	ctxDone := ctx.Done()
    
    	// Use simpler forwarder.
    	if len(in) == 1 {
    		for {
    			select {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  4. cmd/object-api-utils.go

    	for _, disk := range di {
    		if disk == nil || disk.Total == 0 {
    			continue
    		}
    		if !globalIsErasureSD && disk.FreeInodes < diskMinInodes && disk.UsedInodes > 0 {
    			// We have an inode count, but not enough inodes.
    			return false, nil
    		}
    		if int64(disk.Free) <= perDisk {
    			return false, nil
    		}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  5. docs/distributed/decom-encrypted-sse-s3.sh

    pid_2=$!
    
    sleep 30
    
    expanded_user_count=$(./mc admin user list myminio/ | wc -l)
    expanded_policy_count=$(./mc admin policy list myminio/ | wc -l)
    
    if [ $user_count -ne $expanded_user_count ]; then
    	echo "BUG: original user count differs from expanded setup"
    	exit 1
    fi
    
    if [ $policy_count -ne $expanded_policy_count ]; then
    	echo "BUG: original policy count  differs from expanded setup"
    	exit 1
    fi
    
    Shell Script
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  6. internal/dsync/drwmutex.go

    }
    
    // checkQuorumLocked determines whether we have locked the required quorum of underlying locks or not
    func checkQuorumLocked(locks *[]string, quorum int) bool {
    	count := 0
    	for _, uid := range *locks {
    		if isLocked(uid) {
    			count++
    		}
    	}
    
    	return count >= quorum
    }
    
    // releaseAll releases all locks that are marked as locked
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  7. cmd/xl-storage-format-v2_test.go

    	count := len(testCases)
    	for i := 4; i < len(testCases); i++ {
    		tc := testCases[i]
    		dataDir, err := xl.DeleteVersion(fileInfos[i])
    		failOnErr(count+1, err)
    		if dataDir != tc.expectedDataDir {
    			t.Fatalf("Expected %s but got %s", tc.expectedDataDir, dataDir)
    		}
    		count++
    	}
    }
    
    func Benchmark_mergeXLV2Versions(b *testing.B) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 08 17:50:48 GMT 2024
    - 36.4K bytes
    - Viewed (0)
  8. cmd/admin-handlers.go

    	peerLocks := globalNotificationSys.GetLocks(ctx, r)
    
    	topLocks := topLockEntries(peerLocks, stale)
    
    	// Marshal API response upto requested count.
    	if len(topLocks) > count && count > 0 {
    		topLocks = topLocks[:count]
    	}
    
    	jsonBytes, err := json.Marshal(topLocks)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
  9. internal/s3select/sql/parser.go

    	ArgsList []*Expression `parser:"\"(\" (@@ (\",\" @@)*)?\")\""`
    }
    
    // CountFunc represents the COUNT sql function
    type CountFunc struct {
    	StarArg bool        `parser:" \"COUNT\" \"(\" ( @\"*\"?"`
    	ExprArg *Expression `parser:" @@? )! \")\""`
    }
    
    // CastFunc represents CAST sql function
    type CastFunc struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  10. cmd/metacache-set.go

    	filter := func(list []uint64) (commonCount uint64) {
    		max := 0
    		signatureMap := map[uint64]int{}
    		for _, v := range list {
    			signatureMap[v]++
    		}
    		for ops, count := range signatureMap {
    			if max < count && commonCount < ops {
    				max = count
    				commonCount = ops
    			}
    		}
    		if max < readQuorum {
    			return 0
    		}
    		return commonCount
    	}
    
    	commonWrite = filter(writes)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:59:08 GMT 2024
    - 30.4K bytes
    - Viewed (0)
Back to top