Search Options

Results per page
Sort
Preferred Languages
Advance

Results 491 - 500 of 771 for errf (0.04 sec)

  1. internal/config/compress/compress.go

    func LookupConfig(kvs config.KVS) (Config, error) {
    	var err error
    	cfg := Config{}
    	if err = config.CheckValidKeys(config.CompressionSubSys, kvs, DefaultKVS); err != nil {
    		return cfg, err
    	}
    
    	compress := env.Get(EnvCompressState, kvs.Get(config.Enable))
    	if compress == "" {
    		compress = env.Get(EnvCompress, "")
    	}
    	cfg.Enabled, err = config.ParseBool(compress)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. cmd/net.go

    	// Extract host & port from given parameters
    	host1, port1, err := extractHostPort(addr1)
    	if err != nil {
    		return false, err
    	}
    	host2, port2, err := extractHostPort(addr2)
    	if err != nil {
    		return false, err
    	}
    
    	var addr1Local, addr2Local bool
    
    	if host1 == "" {
    		// If empty host means it is localhost
    		addr1Local = true
    	} else if addr1Local, err = isLocalHost(host1, port1, port1); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 14:34:00 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. src/cmd/cgo/gcc.go

    			}
    
    			buildStrings()
    		}
    		return d, ints, floats, strs
    	}
    
    	if f, err := elf.Open(gccTmp()); err == nil {
    		defer f.Close()
    		d, err := f.DWARF()
    		if err != nil {
    			fatalf("cannot load DWARF output from %s: %v", gccTmp(), err)
    		}
    		bo := f.ByteOrder
    		symtab, err := f.Symbols()
    		if err == nil {
    			// Check for use of -fsanitize=hwaddress (issue 53285).
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 18 15:07:34 UTC 2024
    - 97.1K bytes
    - Viewed (0)
  4. internal/s3select/csv/reader.go

    		// Read column names
    		// Get one line.
    		b, err := r.nextSplit(0, nil)
    		if err != nil {
    			r.err = err
    			return err
    		}
    		if !utf8.Valid(b) {
    			return errInvalidTextEncodingError()
    		}
    		reader := newReader(bytes.NewReader(b))
    		record, err := reader.Read()
    		if err != nil {
    			r.err = err
    			if err != io.EOF {
    				r.err = errCSVParsingError(err)
    				return errCSVParsingError(err)
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. internal/ioutil/ioutil.go

    		return w.WriteCloser.Write(buf)
    	})
    	w.err = err
    	return n, err
    }
    
    // Close closer interface to close the underlying closer
    func (w *DeadlineWriter) Close() error {
    	err := w.WriteCloser.Close()
    	w.err = err
    	if err == nil {
    		w.err = errors.New("we are closed") // Avoids any reuse on the Write() side.
    	}
    	return err
    }
    
    // LimitWriter implements io.WriteCloser.
    //
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 26 12:55:01 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. tests/scan_test.go

    	rows, err := DB.Table("users").Where("name = ? or name = ?", user2.Name, user3.Name).Select("name, age").Rows()
    	if err != nil {
    		t.Errorf("No error should happen, got %v", err)
    	}
    
    	type Result struct {
    		Name string
    		Age  int
    	}
    
    	var results []Result
    	for rows.Next() {
    		var result Result
    		if err := DB.ScanRows(rows, &result); err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. internal/s3select/parquet/args.go

    	// Make subtype to avoid recursive UnmarshalXML().
    	type subReaderArgs ReaderArgs
    	parsedArgs := subReaderArgs{}
    	if err := d.DecodeElement(&parsedArgs, &start); err != nil {
    		return err
    	}
    
    	args.unmarshaled = true
    	return nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  8. cmd/server-startup-msg_test.go

    func TestPrintServerCommonMessage(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	obj, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(fsDir)
    	if err = newTestConfig(globalMinioDefaultRegion, obj); err != nil {
    		t.Fatal(err)
    	}
    
    	apiEndpoints := []string{"http://127.0.0.1:9000"}
    	printServerCommonMsg(apiEndpoints)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. internal/http/dial_linux.go

    	return func(ctx context.Context, network, addr string) (net.Conn, error) {
    		dialer := &net.Dialer{
    			Timeout: dialTimeout,
    			Control: setTCPParametersFn(opts),
    		}
    		conn, err := dialer.DialContext(ctx, network, addr)
    		if err != nil {
    			return nil, err
    		}
    		if opts.DriveOPTimeout != nil {
    			// Read deadlines are sufficient for now as per various
    			// scenarios of hung node detection, we may add Write deadlines
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 23 10:53:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. cmd/lock-rest-server.go

    	// Consequently, if err != nil, reply is always false
    	return l.makeResp(resp, err)
    }
    
    // RLockHandler - Acquires an RLock.
    func (l *lockRESTServer) RLockHandler(args *dsync.LockArgs) (*dsync.LockResp, *grid.RemoteErr) {
    	resp := lockRPCRLock.NewResponse()
    	success, err := l.ll.RLock(context.Background(), *args)
    	if err == nil && !success {
    		err = errLockConflict
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top