Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for Murray (0.18 sec)

  1. internal/dsync/drwmutex.go

    }
    
    // A DRWMutex is a distributed mutual exclusion lock.
    type DRWMutex struct {
    	Names                []string
    	writeLocks           []string // Array of nodes that granted a write lock
    	readLocks            []string // Array of array of nodes that granted reader locks
    	rng                  *rand.Rand
    	m                    sync.Mutex // Mutex to prevent multiple simultaneous locks from this node
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  2. internal/s3select/sql/evaluate.go

    		if err != nil {
    			return nil, err
    		}
    	default:
    		return nil, errInvalidASTNode
    	}
    	rhs = *eltVal
    
    	// If RHS is array compare each element.
    	if arr, ok := rhs.ToArray(); ok {
    		for _, element := range arr {
    			// If we have an array we are on the wrong level.
    			if cmp(element, *lhs) {
    				return FromBool(true), nil
    			}
    		}
    		return FromBool(false), nil
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 12K bytes
    - Viewed (0)
  3. tests/query_test.go

    	}
    
    	rows.Close()
    }
    
    func TestSelectWithArrayInput(t *testing.T) {
    	DB.Save(&User{Name: "select_with_array", Age: 42})
    
    	var user User
    	DB.Select([]string{"name", "age"}).Where("age = 42 AND name = ?", "select_with_array").First(&user)
    
    	if user.Name != "select_with_array" || user.Age != 42 {
    		t.Errorf("Should have selected both age and name")
    	}
    }
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v1.go

    // returns false if one of the following check fails
    // - erasure algorithm is different
    // - data blocks are different
    // - parity blocks are different
    // - block size is different
    // - distribution array size is different
    // - distribution indexes are different
    func (ei ErasureInfo) Equal(nei ErasureInfo) bool {
    	if ei.Algorithm != nei.Algorithm {
    		return false
    	}
    	if ei.DataBlocks != nei.DataBlocks {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  5. schema/field.go

    		}
    		if field.HasDefaultValue && !skipParseDefaultValue && field.DataType == Time {
    			if t, err := now.Parse(field.DefaultValue); err == nil {
    				field.DefaultValueInterface = t
    			}
    		}
    	case reflect.Array, reflect.Slice:
    		if reflect.Indirect(fieldValue).Type().Elem() == ByteReflectType && field.DataType == "" {
    			field.DataType = Bytes
    		}
    	}
    
    	if dataTyper, ok := fieldValue.Interface().(GormDataTypeInterface); ok {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
  6. internal/kms/kes.go

    		Details:    st,
    	}, nil
    }
    
    // IsLocal returns true if the KMS is a local implementation
    func (c *kesClient) IsLocal() bool {
    	return env.IsSet(EnvKMSSecretKey)
    }
    
    // List returns an array of local KMS Names
    func (c *kesClient) List() []kes.KeyInfo {
    	var kmsSecret []kes.KeyInfo
    	envKMSSecretKey := env.Get(EnvKMSSecretKey, "")
    	values := strings.SplitN(envKMSSecretKey, ":", 2)
    	if len(values) == 2 {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Apr 16 15:43:39 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  7. operator/cmd/mesh/install.go

    	operatorVer "istio.io/istio/operator/version"
    	"istio.io/istio/pkg/config/constants"
    	"istio.io/istio/pkg/config/labels"
    	"istio.io/istio/pkg/kube"
    )
    
    type InstallArgs struct {
    	// InFilenames is an array of paths to the input IstioOperator CR files.
    	InFilenames []string
    	// ReadinessTimeout is maximum time to wait for all Istio resources to be ready. wait must be true for this setting
    	// to take effect.
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  8. src/cmd/api/main_test.go

    			panic("should never see untyped nil type")
    		default:
    			switch s {
    			case "byte":
    				s = "uint8"
    			case "rune":
    				s = "int32"
    			}
    		}
    		buf.WriteString(s)
    
    	case *types.Array:
    		fmt.Fprintf(buf, "[%d]", typ.Len())
    		w.writeType(buf, typ.Elem())
    
    	case *types.Slice:
    		buf.WriteString("[]")
    		w.writeType(buf, typ.Elem())
    
    	case *types.Struct:
    		buf.WriteString("struct")
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  9. cmd/data-usage-cache.go

    			res[szInt.name] = splCount
    		case humanize.KiByte <= szInt.start && szInt.end <= humanize.MiByte-1:
    			// intervals that fall within the spl interval above; they
    			// appear earlier in this array of intervals, see
    			// ObjectsHistogramIntervals
    			splCount += count
    			fallthrough
    		default:
    			res[szInt.name] = count
    		}
    	}
    	return res
    }
    
    // add a version count to the histogram.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  10. tests/create_test.go

    		}
    	})
    
    	t.Run("Array", func(t *testing.T) {
    		pets := [...]Pet{{
    			Name: "PolymorphicHasOne-Array-1",
    			Toy:  Toy{Name: "Toy-PolymorphicHasOne-Array-1"},
    		}, {
    			Name: "PolymorphicHasOne-Array-2",
    			Toy:  Toy{Name: "Toy-PolymorphicHasOne-Array-2"},
    		}, {
    			Name: "PolymorphicHasOne-Array-3",
    			Toy:  Toy{Name: "Toy-PolymorphicHasOne-Array-3"},
    		}}
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Mar 19 03:50:28 GMT 2024
    - 26.4K bytes
    - Viewed (0)
Back to top