Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 140 for readLine (0.14 sec)

  1. internal/s3select/json/reader_test.go

    					break
    				}
    			}
    			if err != io.EOF {
    				t.Fatalf("Reading failed with %s, %s", err, file.Name())
    			}
    		})
    	}
    }
    
    func BenchmarkReader(b *testing.B) {
    	files, err := os.ReadDir("testdata")
    	if err != nil {
    		b.Fatal(err)
    	}
    	for _, file := range files {
    		b.Run(file.Name(), func(b *testing.B) {
    			f, err := os.ReadFile(filepath.Join("testdata", file.Name()))
    			if err != nil {
    				b.Fatal(err)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  2. internal/disk/stat_linux.go

    					// Check if there is a parent device:
    					//   e.g. if the mount is based on /dev/nvme0n1p1, let's calculate the
    					//        real device name (nvme0n1) to get its sysfs information
    					parentDevPath, e := os.Readlink("/sys/class/block/" + devName)
    					if e == nil {
    						parentDev := filepath.Base(filepath.Dir(parentDevPath))
    						qst, err = bfs.SysBlockDeviceQueueStats(parentDev)
    					}
    				}
    				if err == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  3. docs/throttle/README.md

    ```sh
    export MINIO_API_REQUESTS_MAX=1600
    export MINIO_API_REQUESTS_DEADLINE=2m
    export MINIO_ROOT_USER=your-access-key
    export MINIO_ROOT_PASSWORD=your-secret-key
    minio server http://server{1...8}/mnt/hdd{1...16}
    ```
    
    or
    
    ```sh
    mc admin config set myminio/ api requests_max=1600 requests_deadline=2m
    mc admin service restart myminio/
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Feb 12 00:51:25 GMT 2022
    - 2.4K bytes
    - Viewed (0)
  4. docs/config/README.md

    requests_deadline               (duration)  set the deadline for API requests waiting to be processed (default: '10s')
    cluster_deadline                (duration)  set the deadline for cluster readiness check (default: '10s')
    cors_allow_origin               (csv)       set comma separated list of origins allowed for CORS requests (default: '*')
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 11 21:48:54 GMT 2023
    - 17.7K bytes
    - Viewed (0)
  5. internal/config/api/help.go

    		},
    		config.HelpKV{
    			Key:         apiRequestsDeadline,
    			Description: `set the deadline for API requests waiting to be processed` + defaultHelpPostfix(apiRequestsDeadline),
    			Optional:    true,
    			Type:        "duration",
    		},
    		config.HelpKV{
    			Key:         apiClusterDeadline,
    			Description: `set the deadline for cluster readiness check` + defaultHelpPostfix(apiClusterDeadline),
    			Optional:    true,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 15 01:07:19 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  6. cmd/erasure-object_test.go

    	if err != nil {
    		t.Fatalf("Expected GetObject reading data to succeed, but failed with %v", err)
    	}
    	gr.Close()
    
    	const expectedHash = "fffb6377948ebea75ad2b8058e849ef5"
    	foundHash := fmt.Sprintf("%x", h.Sum(nil))
    	if foundHash != expectedHash {
    		t.Fatalf("Expected data to have md5sum = `%s`, found `%s`", expectedHash, foundHash)
    	}
    }
    
    // Test reading an object with some outdated data in some disks
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 36.8K bytes
    - Viewed (0)
  7. cmd/bitrot-whole.go

    	tillOffset int64           // Affects the length of data requested in disk.ReadFile depending on Read()'s offset
    	buf        []byte          // Holds bit-rot verified data
    }
    
    func (b *wholeBitrotReader) ReadAt(buf []byte, offset int64) (n int, err error) {
    	if b.buf == nil {
    		b.buf = make([]byte, b.tillOffset-offset)
    		if _, err := b.disk.ReadFile(context.TODO(), b.volume, b.filePath, offset, b.buf, b.verifier); err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  8. internal/grid/grid_types_msgp_test.go

    	}
    	for zb0001 > 0 {
    		zb0001--
    		field, err = dc.ReadMapKeyPtr()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		switch msgp.UnsafeString(field) {
    		case "Num":
    			z.Num, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "Num")
    				return
    			}
    		case "String":
    			z.String, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "String")
    				return
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 8.1K bytes
    - Viewed (0)
  9. cmd/xl-storage-disk-id-check.go

    		return nil, err
    	}
    	defer done(&err)
    
    	return p.storage.ListDir(ctx, origvolume, volume, dirPath, count)
    }
    
    // Legacy API - does not have any deadlines
    func (p *xlStorageDiskIDCheck) ReadFile(ctx context.Context, volume string, path string, offset int64, buf []byte, verifier *BitrotVerifier) (n int64, err error) {
    	ctx, done, err := p.TrackDiskHealth(ctx, storageMetricReadFile, volume, path)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  10. cmd/naughty-disk_test.go

    	}
    	return d.disk.ListDir(ctx, origvolume, volume, dirPath, count)
    }
    
    func (d *naughtyDisk) ReadFile(ctx context.Context, volume string, path string, offset int64, buf []byte, verifier *BitrotVerifier) (n int64, err error) {
    	if err := d.calcError(); err != nil {
    		return 0, err
    	}
    	return d.disk.ReadFile(ctx, volume, path, offset, buf, verifier)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 9.3K bytes
    - Viewed (0)
Back to top