Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 7,002 for if (0.17 sec)

  1. cmd/bucket-metadata.go

    	// have this field set.
    	if b.Created.IsZero() {
    		configs, err := b.getAllLegacyConfigs(ctx, objectAPI)
    		if err != nil {
    			return b, err
    		}
    
    		if len(configs) > 0 {
    			// Old bucket without bucket metadata. Hence we migrate existing settings.
    			if err = b.convertLegacyConfigs(ctx, objectAPI, configs); err != nil {
    				return b, err
    			}
    		}
    	}
    
    	if parse {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  2. cmd/object-api-datatypes_gen.go

    			}
    		case "ActualSize":
    			if msgp.IsNil(bts) {
    				bts, err = msgp.ReadNilBytes(bts)
    				if err != nil {
    					return
    				}
    				z.ActualSize = nil
    			} else {
    				if z.ActualSize == nil {
    					z.ActualSize = new(int64)
    				}
    				*z.ActualSize, bts, err = msgp.ReadInt64Bytes(bts)
    				if err != nil {
    					err = msgp.WrapError(err, "ActualSize")
    					return
    				}
    			}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Mar 08 19:08:18 GMT 2024
    - 69.8K bytes
    - Viewed (0)
  3. tests/transaction_test.go

    	tx.Create(&user2)
    
    	if err := tx.First(&User{}, "name = ?", user2.Name).Error; err != nil {
    		t.Fatalf("Should find saved record")
    	}
    
    	if err := tx.Commit().Error; err != nil {
    		t.Fatalf("Failed to commit, got error %v", err)
    	}
    
    	if err := DB.First(&User{}, "name = ?", user.Name).Error; err != nil {
    		t.Fatalf("Should find saved record")
    	}
    
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Sat Jun 10 13:05:19 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/envoy/configdump/route.go

    	w, routes, err := c.setupRouteConfigWriter()
    	if err != nil {
    		return err
    	}
    	if filter.Verbose {
    		fmt.Fprintln(w, "NAME\tVHOST NAME\tDOMAINS\tMATCH\tVIRTUAL SERVICE")
    	} else {
    		fmt.Fprintln(w, "NAME\tVIRTUAL HOSTS")
    	}
    	for _, route := range routes {
    		if filter.Verify(route) {
    			if includeConfigType {
    				route.Name = fmt.Sprintf("route/%s", route.Name)
    			}
    			if filter.Verbose {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu May 11 05:38:17 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  5. cmd/data-scanner.go

    		}
    
    	}
    	// Compact if too many children...
    	if !into.Compacted {
    		f.newCache.reduceChildrenOf(thisHash, dataScannerCompactAtChildren, f.newCache.Info.Name != folder.name)
    	}
    	if _, ok := f.updateCache.Cache[thisHash.Key()]; !wasCompacted && ok {
    		// Replace if existed before.
    		if flat := f.newCache.sizeRecursive(thisHash.Key()); flat != nil {
    			f.updateCache.deleteRecursive(thisHash)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 15 09:40:19 GMT 2024
    - 46.9K bytes
    - Viewed (0)
  6. src/archive/tar/reader.go

    			// just a regular file with additional attributes.
    
    			if err := mergePAX(hdr, paxHdrs); err != nil {
    				return nil, err
    			}
    			if gnuLongName != "" {
    				hdr.Name = gnuLongName
    			}
    			if gnuLongLink != "" {
    				hdr.Linkname = gnuLongLink
    			}
    			if hdr.Typeflag == TypeRegA {
    				if strings.HasSuffix(hdr.Name, "/") {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  7. src/cmd/api/main_test.go

    	}
    
    	context := w.context
    	if context == nil {
    		context = &build.Default
    	}
    
    	// Look in cache.
    	// If we've already done an import with the same set
    	// of relevant tags, reuse the result.
    	var key string
    	if usePkgCache {
    		if tags, ok := pkgTags[dir]; ok {
    			key = tagKey(dir, context, tags)
    			if pkg := pkgCache[key]; pkg != nil {
    				w.imported[name] = pkg
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  8. src/cmd/cgo/gcc.go

    			}
    			break
    		}
    
    		// Add the result type, if any.
    		if name.FuncType.Result != nil {
    			rtype := p.rewriteUnsafe(name.FuncType.Result.Go)
    			if rtype != name.FuncType.Result.Go {
    				needsUnsafe = true
    			}
    			sb.WriteString(gofmtLine(rtype))
    			result = true
    		}
    
    		// Add the second result type, if any.
    		if twoResults {
    			if name.FuncType.Result == nil {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  9. cmd/bootstrap-peer-server_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteInt(z.NEndpoints)
    	if err != nil {
    		err = msgp.WrapError(err, "NEndpoints")
    		return
    	}
    	// write "CmdLines"
    	err = en.Append(0xa8, 0x43, 0x6d, 0x64, 0x4c, 0x69, 0x6e, 0x65, 0x73)
    	if err != nil {
    		return
    	}
    	err = en.WriteArrayHeader(uint32(len(z.CmdLines)))
    	if err != nil {
    		err = msgp.WrapError(err, "CmdLines")
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Jan 24 21:36:44 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  10. cmd/bucket-metadata_gen.go

    	err = en.Append(0xde, 0x0, 0x16, 0xa4, 0x4e, 0x61, 0x6d, 0x65)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.Name)
    	if err != nil {
    		err = msgp.WrapError(err, "Name")
    		return
    	}
    	// write "Created"
    	err = en.Append(0xa7, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64)
    	if err != nil {
    		return
    	}
    	err = en.WriteTime(z.Created)
    	if err != nil {
    		err = msgp.WrapError(err, "Created")
    		return
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu May 25 05:52:39 GMT 2023
    - 22.1K bytes
    - Viewed (0)
Back to top