Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 906 for errh (0.03 sec)

  1. cmd/format-erasure.go

    1. // countErrs - count a specific error.
    2. func countErrs(errs []error, err error) int {
    3. i := 0
    4. for _, err1 := range errs {
    5. if err1 == err || errors.Is(err1, err) {
    6. i++
    7. }
    8. }
    9. return i
    10. }
    11.  
    12. // Does all errors indicate we need to initialize all disks?.
    13. func shouldInitErasureDisks(errs []error) bool {
    14. return countErrs(errs, errUnformattedDisk) == len(errs)
    15. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  2. cmd/httprange_test.go

    1. for i, irs := range invalidRangeSpecs {
    2. var err1, err2 error
    3. var rs *HTTPRangeSpec
    4. var o, l int64
    5. rs, err1 = parseRequestRangeSpec(irs)
    6. if err1 == nil {
    7. o, l, err2 = rs.GetOffsetLength(resourceSize)
    8. }
    9. if isErrInvalidRange(err1) || (err1 == nil && isErrInvalidRange(err2)) {
    10. continue
    11. }
    12. t.Errorf("Case %d: Expected errInvalidRange but: %v %v %d %d %v", i, rs, err1, o, l, err2)
    13. }
    14. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun May 05 16:56:21 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. cmd/erasure-healing_test.go

    1. if err != nil {
    2. t.Fatal(err)
    3. }
    4.  
    5. // Checking abandoned parts should do nothing
    6. err = er.checkAbandonedParts(ctx, bucket, object, madmin.HealOpts{ScanMode: madmin.HealNormalScan, Remove: true})
    7. if err != nil {
    8. t.Fatal(err)
    9. }
    10.  
    11. _, err = er.HealObject(ctx, bucket, object, "", madmin.HealOpts{ScanMode: madmin.HealNormalScan})
    12. if err != nil {
    13. t.Fatal(err)
    14. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
  4. internal/s3select/sql/evaluate.go

    1. }
    2.  
    3. var rhs Value
    4. var err error
    5. var eltVal *Value
    6. switch {
    7. case e.JPathExpr != nil:
    8. eltVal, err = e.JPathExpr.evalNode(r, tableAlias)
    9. if err != nil {
    10. return nil, err
    11. }
    12. case e.ListExpr != nil:
    13. eltVal, err = e.ListExpr.evalNode(r, tableAlias)
    14. if err != nil {
    15. return nil, err
    16. }
    17. default:
    18. return nil, errInvalidASTNode
    19. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 12K bytes
    - Viewed (0)
  5. cmd/xl-storage-disk-id-check.go

    1. // Merely for tracing storage
    2. path := ""
    3. if len(versions) > 0 {
    4. path = versions[0].Name
    5. }
    6. errs = make([]error, len(versions))
    7. ctx, done, err := p.TrackDiskHealth(ctx, storageMetricDeleteVersions, volume, path)
    8. if err != nil {
    9. for i := range errs {
    10. errs[i] = ctx.Err()
    11. }
    12. return errs
    13. }
    14. defer func() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:56:26 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  6. cmd/site-replication.go

    1. }
    2.  
    3. if globalDNSConfig != nil {
    4. if err := globalDNSConfig.Delete(bucket); err != nil {
    5. return err
    6. }
    7. }
    8. err := objAPI.DeleteBucket(ctx, bucket, opts)
    9. if err != nil {
    10. if globalDNSConfig != nil {
    11. if err2 := globalDNSConfig.Put(bucket); err2 != nil {
    12. replLogIf(ctx, fmt.Errorf("Unable to restore bucket DNS entry %w, please fix it manually", err2))
    13. }
    14. }
    15. return err
    16. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
  7. cmd/erasure-server-pool.go

    1. if err = checkGetObjArgs(ctx, bucket, object); err != nil {
    2. return objInfo, err
    3. }
    4.  
    5. // This is a special call attempted first to check for SOS-API calls.
    6. objInfo, err = veeamSOSAPIHeadObject(ctx, bucket, object, opts)
    7. if err == nil {
    8. return objInfo, nil
    9. }
    10.  
    11. // reset any error to 'nil', and object info to be empty.
    12. err = nil
    13. objInfo = ObjectInfo{}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  8. cmd/object-api-utils.go

    1. off, length, skipLen, seqNumber, partStart, err = oi.GetDecryptedRange(rs)
    2. if err != nil {
    3. return nil, 0, 0, err
    4. }
    5. var decSize int64
    6. decSize, err = oi.DecryptedSize()
    7. if err != nil {
    8. return nil, 0, 0, err
    9. }
    10. var decRangeLength int64
    11. decRangeLength, err = rs.GetLength(decSize)
    12. if err != nil {
    13. return nil, 0, 0, err
    14. }
    15.  
    16. // We define a closure that performs decryption given
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  9. internal/s3select/sql/funceval.go

    1. q, err := d.Quantity.evalNode(r, tableAlias)
    2. if err != nil {
    3. return nil, err
    4. }
    5. inferTypeForArithOp(q)
    6. qty, ok := q.ToFloat()
    7. if !ok {
    8. return nil, fmt.Errorf("QUANTITY must be a numeric argument to %s()", sqlFnDateAdd)
    9. }
    10.  
    11. ts, err := d.Timestamp.evalNode(r, tableAlias)
    12. if err != nil {
    13. return nil, err
    14. }
    15. if err = inferTypeAsTimestamp(ts); err != nil {
    16. return nil, err
    17. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 13.2K bytes
    - Viewed (0)
  10. cmd/erasure-healing-common_test.go

    1. if err != nil {
    2. t.Fatalf("Failed to getLatestFileInfo %v", err)
    3. }
    4.  
    5. for j := range partsMetadata {
    6. if errs[j] != nil {
    7. t.Fatalf("expected error to be nil: %s", errs[j])
    8. }
    9. partsMetadata[j].ModTime = test.modTimes[j]
    10. }
    11.  
    12. tamperedIndex := -1
    13. switch test._tamperBackend {
    14. case deletePart:
    15. for index, err := range test.errs {
    16. if err != nil {
    17. continue
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 15:19:10 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top