Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 857 for NIL (0.02 sec)

  1. cmd/untar.go

    }
    
    func (d *disconnectReader) Read(p []byte) (n int, err error) {
    	d.mu.Lock()
    	defer d.mu.Unlock()
    	if d.r != nil {
    		return d.r.Read(p)
    	}
    	return 0, errors.New("reader closed")
    }
    
    func (d *disconnectReader) Close() error {
    	d.mu.Lock()
    	d.r = nil
    	d.mu.Unlock()
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. finisher_api.go

    		rowsAffected += result.RowsAffected
    		batch++
    
    		if result.Error == nil && result.RowsAffected != 0 {
    			fcTx := result.Session(&Session{NewDB: true})
    			fcTx.RowsAffected = result.RowsAffected
    			tx.AddError(fc(fcTx, batch))
    		} else if result.Error != nil {
    			tx.AddError(result.Error)
    		}
    
    		if tx.Error != nil || int(result.RowsAffected) < batchSize {
    			break
    		}
    
    		if totalSize > 0 {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Sep 14 12:58:29 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  3. internal/s3select/sql/parser_test.go

    		err := p.ParseString(tc, &id)
    		if err != nil {
    			t.Fatalf("%d: %v", i, err)
    		}
    		// repr.Println(id, repr.Indent("  "), repr.OmitEmpty(true))
    	}
    
    	invalidCases := []string{
    		"+a",
    		"-a",
    		"1a",
    		`"ab`,
    		`abc"`,
    		`aa""a`,
    		`"a"a"`,
    	}
    	for i, tc := range invalidCases {
    		err := p.ParseString(tc, &id)
    		if err == nil {
    			t.Fatalf("%d: %v", i, err)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. cmd/bitrot.go

    	for _, r := range rs {
    		if r != nil {
    			if br, ok := r.(io.Closer); ok {
    				br.Close()
    			}
    		}
    	}
    }
    
    // Close all the writers.
    func closeBitrotWriters(ws []io.Writer) {
    	for _, w := range ws {
    		if w != nil {
    			if bw, ok := w.(io.Closer); ok {
    				bw.Close()
    			}
    		}
    	}
    }
    
    // Returns hash sum for whole-bitrot, nil for streaming-bitrot.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. internal/s3select/jstream/decoder.go

    		return i, Number, err
    	case '-':
    		if c = d.next(); c < '0' || c > '9' {
    			return nil, Unknown, d.mkError(ErrSyntax, "in negative numeric literal")
    		}
    		n, err := d.number()
    		if err != nil {
    			return nil, Unknown, err
    		}
    		return -n, Number, nil
    	case 'f':
    		if d.remaining() < 4 {
    			return nil, Unknown, d.mkError(ErrUnexpectedEOF)
    		}
    		//nolint:gocritic
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  6. cmd/erasure-metadata-utils_test.go

    		{
    			[]error{
    				errFileNotFound, errFileNotFound, errFileNotFound,
    				errFileNotFound, errFileNotFound, nil, nil, nil, nil, nil,
    			},
    			nil, nil,
    		},
    		// Checks if wrapped context cancellation errors are grouped as one.
    		{canceledErrs, nil, context.Canceled},
    	}
    	// Validates list of all the testcases for returning valid errors.
    	for i, testCase := range testCases {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  7. cmd/erasure-encode.go

    	for i := range p.writers {
    		if p.errs[i] != nil {
    			continue
    		}
    		if p.writers[i] == nil {
    			p.errs[i] = errDiskNotFound
    			continue
    		}
    		var n int
    		n, p.errs[i] = p.writers[i].Write(blocks[i])
    		if p.errs[i] == nil {
    			if n != len(blocks[i]) {
    				p.errs[i] = io.ErrShortWrite
    				p.writers[i] = nil
    			}
    		} else {
    			p.writers[i] = nil
    		}
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. cmd/bitrot_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	_, err = writer.Write([]byte("aaaaa"))
    	if err != nil {
    		t.Fatal(err)
    	}
    	if bw, ok := writer.(io.Closer); ok {
    		bw.Close()
    	}
    
    	reader := newBitrotReader(disk, nil, volume, filePath, 35, bitrotAlgo, bitrotWriterSum(writer), 10)
    	b := make([]byte, 10)
    	if _, err = reader.ReadAt(b, 0); err != nil {
    		t.Fatal(err)
    	}
    	if _, err = reader.ReadAt(b, 10); err != nil {
    		t.Fatal(err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. internal/store/batch_test.go

    import (
    	"context"
    	"sync"
    	"testing"
    	"time"
    )
    
    func TestBatchCommit(t *testing.T) {
    	defer func() {
    		if err := tearDownQueueStore(); err != nil {
    			t.Fatalf("Failed to tear down store; %v", err)
    		}
    	}()
    	store, err := setUpQueueStore(queueDir, 100)
    	if err != nil {
    		t.Fatalf("Failed to create a queue store; %v", err)
    	}
    
    	var limit uint32 = 100
    
    	batch := NewBatch[TestItem](BatchConfig[TestItem]{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. callbacks.go

    	}
    
    	// assign model values
    	if stmt.Model == nil {
    		stmt.Model = stmt.Dest
    	} else if stmt.Dest == nil {
    		stmt.Dest = stmt.Model
    	}
    
    	// parse model values
    	if stmt.Model != nil {
    		if err := stmt.Parse(stmt.Model); err != nil && (!errors.Is(err, schema.ErrUnsupportedDataType) || (stmt.Table == "" && stmt.TableExpr == nil && stmt.SQL.Len() == 0)) {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 26 03:33:36 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top