Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for elseif (0.15 sec)

  1. cmd/test-utils_test.go

    	} else {
    		globalAllHealState.Lock()
    		for _, v := range globalAllHealState.healSeqMap {
    			if !v.hasEnded() {
    				v.stop()
    			}
    		}
    		globalAllHealState.Unlock()
    	}
    
    	// Init background heal state
    	if globalBackgroundHealState == nil {
    		globalBackgroundHealState = newHealState(GlobalContext, false)
    	} else {
    		globalBackgroundHealState.Lock()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  2. cmd/peer-rest-server.go

    	values := v.Values()
    	var types madmin.MetricType
    	if t, _ := strconv.ParseUint(values.Get(peerRESTMetricsTypes), 10, 64); t != 0 {
    		types = madmin.MetricType(t)
    	} else {
    		types = madmin.MetricsAll
    	}
    
    	diskMap := make(map[string]struct{})
    	for _, disk := range values[peerRESTDisk] {
    		diskMap[disk] = struct{}{}
    	}
    
    	hostMap := make(map[string]struct{})
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  3. cmd/iam-store.go

    			return
    		}
    		if !isGroup {
    			if userType == stsUser {
    				cache.iamSTSPolicyMap.Delete(name)
    			} else {
    				cache.iamUserPolicyMap.Delete(name)
    			}
    		} else {
    			cache.iamGroupPolicyMap.Delete(name)
    		}
    	} else {
    
    		if err = store.saveMappedPolicy(ctx, name, userType, isGroup, newPolicyMapping); err != nil {
    			return
    		}
    		if !isGroup {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  4. cmd/xl-storage.go

    	}
    
    	// Return an error if ODirect is not supported. Single disk will have
    	// oDirect off.
    	if globalIsErasureSD || !disk.ODirectPlatform {
    		s.oDirect = false
    	} else if err := s.checkODirectDiskSupport(info.FSType); err == nil {
    		s.oDirect = true
    	} else {
    		return s, err
    	}
    
    	// Initialize DiskInfo cache
    	s.diskInfoCache.InitOnce(time.Second, cachevalue.Opts{},
    		func() (DiskInfo, error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  5. cmd/object-api-listobjects_test.go

    					testCase.delimiter, "maxkeys:", testCase.maxKeys)
    
    				resultV, err = obj.ListObjectVersions(context.Background(), testCase.bucketName,
    					testCase.prefix, testCase.marker, "", testCase.delimiter, testCase.maxKeys)
    			} else {
    				t.Log("ListObjects, bucket:", testCase.bucketName, "prefix:",
    					testCase.prefix, "marker:", testCase.marker, "delimiter:",
    					testCase.delimiter, "maxkeys:", testCase.maxKeys)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v2_gen.go

    	s = 1 + 5 + msgp.Uint8Size + 6
    	if z.ObjectV1 == nil {
    		s += msgp.NilSize
    	} else {
    		s += z.ObjectV1.Msgsize()
    	}
    	s += 6
    	if z.ObjectV2 == nil {
    		s += msgp.NilSize
    	} else {
    		s += z.ObjectV2.Msgsize()
    	}
    	s += 7
    	if z.DeleteMarker == nil {
    		s += msgp.NilSize
    	} else {
    		s += z.DeleteMarker.Msgsize()
    	}
    	s += 2 + msgp.Uint64Size
    	return
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  7. cmd/erasure-object.go

    		} else if shardFileSize < inlineBlock/8 {
    			inlineBuffers = make([]*bytes.Buffer, len(onlineDisks))
    		}
    	} else {
    		// If compressed, use actual size to determine.
    		if sz := erasure.ShardFileSize(data.ActualSize()); sz > 0 {
    			if !opts.Versioned && sz < inlineBlock {
    				inlineBuffers = make([]*bytes.Buffer, len(onlineDisks))
    			} else if sz < inlineBlock/8 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  8. cmd/iam.go

    				dn = r.User
    			} else {
    				err = errNoSuchUser
    				return
    			}
    		}
    		isGroup = false
    	} else {
    		if isAttach {
    			var foundGroupDN string
    			var underBaseDN bool
    			if foundGroupDN, underBaseDN, err = sys.LDAPConfig.GetValidatedGroupDN(nil, r.Group); err != nil {
    				iamLogIf(ctx, err)
    				return
    			} else if foundGroupDN == "" || !underBaseDN {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  9. tests/migrate_test.go

    		t.Fatalf("Failed to auto migrate, got error %v", err)
    	}
    
    	if tables, err := DB.Migrator().GetTables(); err != nil {
    		t.Fatalf("Failed to get database all tables, but got error %v", err)
    	} else {
    		for _, t1 := range []string{"users", "accounts", "pets", "companies", "toys", "languages", "tools"} {
    			hasTable := false
    			for _, t2 := range tables {
    				if t2 == t1 {
    					hasTable = true
    					break
    				}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  10. cmd/erasure-server-pool.go

    					found++
    					var r io.ReadCloser
    					if !si.Dir {
    						r, err = disk.ReadFileStream(ctx, volume, si.Name, 0, si.Size)
    						if err != nil {
    							continue
    						}
    					} else {
    						r = io.NopCloser(bytes.NewBuffer([]byte{}))
    					}
    					// Keep disk path instead of ID, to ensure that the downloaded zip file can be
    					// easily automated with `minio server hostname{1...n}/disk{1...m}`.
    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