Search Options

Results per page
Sort
Preferred Languages
Advance

Results 511 - 520 of 938 for NIL (0.02 sec)

  1. src/bufio/scan_test.go

    	if *c > 0 {
    		*c--
    		return 1, data[:1], nil
    	}
    	return 0, nil, nil
    }
    
    // Check that the looping-at-EOF check doesn't trigger for merely empty tokens.
    func TestEmptyLinesOK(t *testing.T) {
    	c := countdown(10000)
    	s := NewScanner(strings.NewReader(strings.Repeat("\n", 10000)))
    	s.Split(c.split)
    	for s.Scan() {
    	}
    	if s.Err() != nil {
    		t.Fatal("after scan:", s.Err())
    	}
    	if c != 0 {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 22 16:22:42 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-v2.go

    	buf, major, minor, err := checkXL2V1(buf)
    	if err != nil || major != 1 || minor < 3 {
    		return nil, nil, nil
    	}
    	meta, buf, err = msgp.ReadBytesZC(buf)
    	if err != nil {
    		return nil, nil, err
    	}
    	if crc, nbuf, err := msgp.ReadUint32Bytes(buf); err == nil {
    		// Read metadata CRC
    		buf = nbuf
    		if got := uint32(xxhash.Sum64(meta)); got != crc {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (0)
  3. cmd/batch-job-common-types_test.go

    			err := test.sizeFilter.Validate()
    			if err != nil {
    				gotErr := err.(BatchJobYamlErr)
    				testErr := test.err.(BatchJobYamlErr)
    				if gotErr.message() != testErr.message() {
    					t.Fatalf("Expected %v but got %v", test.err, err)
    				}
    			}
    			if err == nil && test.err != nil {
    				t.Fatalf("Expected %v but got nil", test.err)
    			}
    		})
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jan 08 23:22:28 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. cmd/peer-s3-server.go

    	if err := listAllBuckets(ctx, localDrives, healBuckets, quorum); err != nil {
    		return nil, err
    	}
    
    	// include deleted buckets in listBuckets output
    	deletedBuckets := map[string]VolInfo{}
    
    	if opts.Deleted {
    		// lists all deleted buckets across drives.
    		if err := listDeletedBuckets(ctx, localDrives, deletedBuckets, quorum); err != nil {
    			return nil, err
    		}
    	}
    
    	for _, v := range healBuckets {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 22 21:57:20 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. cmd/data-usage-cache.go

    						return true, nil
    					}
    					return false, err
    				}
    				err = d.deserialize(r)
    				r.Close()
    				return err != nil, nil
    			case InsufficientReadQuorum, StorageErr:
    				return true, nil
    			}
    			return false, err
    		}
    		err = d.deserialize(r)
    		r.Close()
    		return err != nil, nil
    	}
    
    	// Caches are read+written without locks,
    	retries := 0
    	for retries < 5 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  6. cmd/bucket-replication-handlers.go

    	if err = replicationConfig.Validate(bucket, sameTarget); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	configData, err := xml.Marshal(replicationConfig)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	if _, err = globalBucketMetadataSys.Update(ctx, bucket, bucketReplicationConfig, configData); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  7. internal/config/dns/etcd_dns.go

    	defer cancel()
    	if err != nil {
    		return nil, err
    	}
    
    	if r.Count == 0 {
    		key = strings.TrimSuffix(key, etcdPathSeparator)
    		r, err = c.etcdClient.Get(ctx, key)
    		if err != nil {
    			return nil, err
    		}
    		// only if we are looking at `domain` as true
    		// we should return error here.
    		if domain && r.Count == 0 {
    			return nil, ErrDomainMissing
    		}
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 26 15:03:08 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. internal/config/identity/openid/jwt.go

    	if dsecs == "" {
    		return nil
    	}
    
    	if _, err := auth.ExpToInt64(expStr); err != nil {
    		return err
    	}
    
    	defaultExpiryDuration, err := GetDefaultExpiration(dsecs)
    	if err != nil {
    		return err
    	}
    
    	claims["exp"] = time.Now().UTC().Add(defaultExpiryDuration).Unix() // update with new expiry.
    	return nil
    }
    
    const (
    	audClaim = "aud"
    	azpClaim = "azp"
    )
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 02:46:36 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. cmd/update.go

    		bytebufferpool.Put(b)
    		bytebufferpool.Put(bc)
    	}()
    
    	w, err := zstd.NewWriter(bc)
    	if err != nil {
    		return nil, nil, err
    	}
    
    	if _, err = io.Copy(w, io.TeeReader(reader, b)); err != nil {
    		return nil, nil, err
    	}
    
    	w.Close()
    	return bc.Bytes(), b.Bytes(), nil
    }
    
    const (
    	// Update this whenever the official minisign pubkey is rotated.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/transition_test.go

    		  </NoncurrentVersionTransition>`,
    			err: nil,
    		},
    		{
    			input: `<NoncurrentVersionTransition>
    			<Days>1</Days>
    		  </NoncurrentVersionTransition>`,
    			err: errXMLNotWellFormed,
    		},
    	}
    
    	for i, tc := range ntrTests {
    		var ntr NoncurrentVersionTransition
    		err := xml.Unmarshal([]byte(tc.input), &ntr)
    		if err != nil {
    			t.Fatalf("%d: xml unmarshal failed with %v", i+1, err)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 01 18:58:17 UTC 2021
    - 2.3K bytes
    - Viewed (0)
Back to top