Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for g2 (0.12 sec)

  1. prepare_stmt.go

    	defer close(cacheStmt.prepared)
    
    	// Reason why cannot lock conn.PrepareContext
    	// suppose the maxopen is 1, g1 is creating record and g2 is querying record.
    	// 1. g1 begin tx, g1 is requeue because of waiting for the system call, now `db.ConnPool` db.numOpen == 1.
    	// 2. g2 select lock `conn.PrepareContext(ctx, query)`, now db.numOpen == db.maxOpen , wait for release.
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 28 08:47:39 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  2. cmd/site-replication.go

    		}
    	}
    	return nil
    }
    
    func isGroupDescEqual(g1, g2 madmin.GroupDesc) bool {
    	if g1.Name != g2.Name ||
    		g1.Status != g2.Status ||
    		g1.Policy != g2.Policy {
    		return false
    	}
    	if len(g1.Members) != len(g2.Members) {
    		return false
    	}
    	for _, v1 := range g1.Members {
    		var found bool
    		for _, v2 := range g2.Members {
    			if v1 == v2 {
    				found = true
    				break
    			}
    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)
Back to top