Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for todos (0.14 sec)

  1. cmd/bitrot-whole.go

    	filePath  string
    	shardSize int64 // This is the shard size of the erasure logic
    	hash.Hash       // For bitrot hash
    }
    
    func (b *wholeBitrotWriter) Write(p []byte) (int, error) {
    	err := b.disk.AppendFile(context.TODO(), b.volume, b.filePath, p)
    	if err != nil {
    		return 0, err
    	}
    	_, err = b.Hash.Write(p)
    	if err != nil {
    		return 0, err
    	}
    	return len(p), nil
    }
    
    func (b *wholeBitrotWriter) Close() error {
    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)
  2. internal/s3select/parquet/reader.go

    	if se == nil {
    		return v, nil
    	}
    
    	var value interface{}
    	switch val := v.(type) {
    	case []byte:
    		// TODO: only strings are supported in s3select output (not
    		// binary arrays) - perhaps we need to check the annotation to
    		// ensure it's UTF8 encoded.
    		value = string(val)
    	case [12]byte:
    		// TODO: This is returned for the parquet INT96 type. We just
    		// treat it same as []byte (but AWS S3 treats it as a large int)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 14 13:54:47 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  3. cmd/data-scanner_test.go

    	versioned := vcfg.Status == "Enabled"
    	wants := make([]ObjectInfo, 2)
    	for i, fi := range fivs[:2] {
    		wants[i] = fi.ToObjectInfo(bucket, obj, versioned)
    	}
    	gots, err := item.applyNewerNoncurrentVersionLimit(context.TODO(), objAPI, fivs, es)
    	if err != nil {
    		t.Fatalf("Failed with err: %v", err)
    	}
    	if len(gots) != len(wants) {
    		t.Fatalf("Expected %d objects but got %d", len(wants), len(gots))
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  4. internal/bucket/replication/destination.go

    	XMLName      xml.Name `xml:"Destination" json:"Destination"`
    	Bucket       string   `xml:"Bucket" json:"Bucket"`
    	StorageClass string   `xml:"StorageClass" json:"StorageClass"`
    	ARN          string
    	// EncryptionConfiguration TODO: not needed for MinIO
    }
    
    func (d Destination) isValidStorageClass() bool {
    	if d.StorageClass == "" {
    		return true
    	}
    	return d.StorageClass == "STANDARD" || d.StorageClass == "REDUCED_REDUNDANCY"
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 4K bytes
    - Viewed (2)
  5. cmd/signature-v4-utils.go

    			//   expectation  =  "100-continue" | expectation-extension
    			//
    			// So it safe to assume that '100-continue' is what would
    			// be sent, for the time being keep this work around.
    			// Adding a *TODO* to remove this later when Golang server
    			// doesn't filter out the 'Expect' header.
    			extractedSignedHeaders.Set(header, "100-continue")
    		case "host":
    			// Go http server removes "host" from Request.Header
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 18:56:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  6. cmd/kms-handlers.go

    		DefaultKeyID: stat.DefaultKey,
    		Endpoints:    make(map[string]madmin.ItemState, len(stat.Endpoints)),
    	}
    	for _, endpoint := range stat.Endpoints {
    		status.Endpoints[endpoint] = madmin.ItemOnline // TODO(aead): Implement an online check for mTLS
    	}
    
    	resp, err := json.Marshal(status)
    	if err != nil {
    		writeCustomErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInternalError), err.Error(), r.URL)
    		return
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  7. internal/s3select/sql/value.go

    		return nil
    	}
    }
    
    // Value arithmetic functions: we do not expose them outside the
    // module. All arithmetic works only on numeric values with automatic
    // promotion to the "larger" type that can represent the value. TODO:
    // Add support for large number arithmetic.
    
    // Supported arithmetic operators
    const (
    	opPlus     = "+"
    	opMinus    = "-"
    	opDivide   = "/"
    	opMultiply = "*"
    	opModulo   = "%"
    )
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  8. cmd/xl-storage-disk-id-check.go

    	}
    	xl.SetDiskID(emptyDiskID)
    
    	xl.totalWrites.Store(xl.storage.getWriteAttribute())
    	xl.totalDeletes.Store(xl.storage.getDeleteAttribute())
    	xl.diskCtx, xl.diskCancel = context.WithCancel(context.TODO())
    	for i := range xl.apiLatencies[:] {
    		xl.apiLatencies[i] = &lockedLastMinuteLatency{}
    	}
    	if xl.healthCheck {
    		go xl.monitorDiskWritable(xl.diskCtx)
    	}
    	return &xl
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  9. cmd/iam.go

    	// such a case, is a security issue. Ideally, we should not allow such
    	// behavior, but for compatibility with the Console, we currently allow it.
    	//
    	// TODO:
    	//
    	// 1. fix console behavior and allow this inheritance for service accounts
    	// created before a certain (TBD) future date.
    	//
    	// 2. do not allow empty statement policies for service accounts.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  10. cmd/erasure-server-pool.go

    	return z.s3Peer.HealBucket(ctx, bucket, opts)
    }
    
    // Walk a bucket, optionally prefix recursively, until we have returned
    // all the contents of the provided bucket+prefix.
    // TODO: Note that most errors will result in a truncated listing.
    func (z *erasureServerPools) Walk(ctx context.Context, bucket, prefix string, results chan<- ObjectInfo, opts WalkOptions) error {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
Back to top