Search Options

Results per page
Sort
Preferred Languages
Advance

Results 391 - 400 of 938 for Nil$ (0.02 sec)

  1. cmd/mrf.go

    		for {
    			op := PartialOperation{}
    			err = op.DecodeMsg(mr)
    			if err != nil {
    				break
    			}
    			opCh <- op
    		}
    
    		return nil
    	}
    
    	globalLocalDrivesMu.RLock()
    	localDrives := cloneDrives(globalLocalDrivesMap)
    	globalLocalDrivesMu.RUnlock()
    
    	for _, localDrive := range localDrives {
    		if localDrive == nil {
    			continue
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:26:05 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. internal/crypto/key_test.go

    	if err := recover(); err == nil && !shouldPass {
    		t.Errorf("Test %d should fail but passed successfully", i)
    	} else if err != nil && shouldPass {
    		t.Errorf("Test %d should pass but failed: %v", i, err)
    	}
    }
    
    var generateKeyTests = []struct {
    	ExtKey     [32]byte
    	Random     io.Reader
    	ShouldPass bool
    }{
    	{ExtKey: [32]byte{}, Random: nil, ShouldPass: true},              // 0
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. cmd/config-common.go

    	r, err := store.GetObjectNInfo(ctx, minioMetaBucket, configFile, nil, http.Header{}, opts)
    	if err != nil {
    		if isErrObjectNotFound(err) {
    			return nil, ObjectInfo{}, errConfigNotFound
    		}
    
    		return nil, ObjectInfo{}, err
    	}
    	defer r.Close()
    
    	buf, err := io.ReadAll(r)
    	if err != nil {
    		return nil, ObjectInfo{}, err
    	}
    	if len(buf) == 0 {
    		return nil, ObjectInfo{}, errConfigNotFound
    	}
    	return buf, r.ObjInfo, nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. clause/update_test.go

    	}{
    		{
    			[]clause.Interface{clause.Update{}},
    			"UPDATE `users`", nil,
    		},
    		{
    			[]clause.Interface{clause.Update{Modifier: "LOW_PRIORITY"}},
    			"UPDATE LOW_PRIORITY `users`", nil,
    		},
    		{
    			[]clause.Interface{clause.Update{Table: clause.Table{Name: "products"}, Modifier: "LOW_PRIORITY"}},
    			"UPDATE LOW_PRIORITY `products`", nil,
    		},
    	}
    
    	for idx, result := range results {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Jun 02 01:18:01 UTC 2020
    - 722 bytes
    - Viewed (0)
  5. src/archive/tar/example_test.go

    		hdr := &tar.Header{
    			Name: file.Name,
    			Mode: 0600,
    			Size: int64(len(file.Body)),
    		}
    		if err := tw.WriteHeader(hdr); err != nil {
    			log.Fatal(err)
    		}
    		if _, err := tw.Write([]byte(file.Body)); err != nil {
    			log.Fatal(err)
    		}
    	}
    	if err := tw.Close(); err != nil {
    		log.Fatal(err)
    	}
    
    	// Open and iterate through the files in the archive.
    	tr := tar.NewReader(&buf)
    	for {
    		hdr, err := tr.Next()
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Nov 16 16:54:08 UTC 2017
    - 1.4K bytes
    - Viewed (0)
  6. tests/joins_table_test.go

    	DB.Migrator().DropTable(&Person{}, &Address{}, &PersonAddress{})
    
    	if err := DB.SetupJoinTable(&Person{}, "Addresses", &PersonAddress{}); err != nil {
    		t.Fatalf("Failed to setup join table for person, got error %v", err)
    	}
    
    	if err := DB.AutoMigrate(&Person{}, &Address{}); err != nil {
    		t.Fatalf("Failed to migrate, got %v", err)
    	}
    
    	address1 := Address{Name: "address 1"}
    	address2 := Address{Name: "address 2"}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Sep 10 13:46:18 UTC 2020
    - 3.5K bytes
    - Viewed (0)
  7. internal/s3select/json/preader.go

    		dstRec = &Record{}
    	}
    	dstRec.KVS = kvRecord
    	dstRec.SelectFormat = sql.SelectFmtJSON
    	return dstRec, nil
    }
    
    // Close - closes underlying reader.
    func (r *PReader) Close() error {
    	if r.close != nil {
    		close(r.close)
    		r.readerWg.Wait()
    		r.close = nil
    	}
    	r.recordsRead = len(r.current)
    	if r.err == nil {
    		r.err = io.EOF
    	}
    	return r.readCloser.Close()
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. cmd/erasure-metadata.go

    	mErrs := g.Wait()
    
    	err := reduceWriteQuorumErrs(ctx, mErrs, objectOpIgnoredErrs, quorum)
    	if err != nil && revert {
    		ng := errgroup.WithNErrs(len(disks))
    		for index := range disks {
    			if mErrs[index] != nil {
    				continue
    			}
    			index := index
    			ng.Go(func() error {
    				if disks[index] == nil {
    					return errDiskNotFound
    				}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  9. internal/rest/client.go

    		// to explicitly say that the ContentLength is zero is
    		// to set the Body to nil. But turns out too much code
    		// depends on NewRequest returning a non-nil Body,
    		// so we use a well-known ReadCloser variable instead
    		// and have the http package also treat that sentinel
    		// variable to mean explicitly zero.
    		if req.GetBody != nil && req.ContentLength == 0 {
    			req.Body = http.NoBody
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 26 12:55:01 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  10. cmd/metacache-stream_test.go

    	defer r.Close()
    	names, err := r.readNames(5)
    	if err != nil {
    		t.Fatal(err)
    	}
    	want := loadMetacacheSampleNames[:5]
    	if !reflect.DeepEqual(names, want) {
    		t.Errorf("got unexpected result: %#v", names)
    	}
    	err = r.skip(5)
    	if err != nil {
    		t.Fatal(err)
    	}
    	names, err = r.readNames(5)
    	if err != nil {
    		t.Fatal(err)
    	}
    	want = loadMetacacheSampleNames[10:15]
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 15K bytes
    - Viewed (0)
Back to top