Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 74 for Hancic (0.22 sec)

  1. internal/dsync/drwmutex.go

    	dsyncLog = env.Get("_MINIO_DSYNC_TRACE", "0") == "1"
    
    	lockRetryMinInterval = 250 * time.Millisecond
    	if lri := env.Get("_MINIO_LOCK_RETRY_INTERVAL", ""); lri != "" {
    		v, err := strconv.Atoi(lri)
    		if err != nil {
    			panic(err)
    		}
    		lockRetryMinInterval = time.Duration(v) * time.Millisecond
    	}
    
    	lockRetryBackOff = backoffWait(
    		lockRetryMinInterval,
    		100*time.Millisecond,
    		5*time.Second,
    	)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  2. cni/pkg/plugin/plugin.go

    		loggingOptions.WithTeeToUDS(udsAddress, constants.UDSLogPath)
    	}
    	return loggingOptions
    }
    
    // CmdAdd is called for ADD requests
    func CmdAdd(args *skel.CmdArgs) (err error) {
    	// Defer a panic recover, so that in case if panic we can still return
    	// a proper error to the runtime.
    	defer func() {
    		if e := recover(); e != nil {
    			msg := fmt.Sprintf("istio-cni panicked during cmdAdd: %v\n%v", e, string(debug.Stack()))
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  3. cmd/generic-handlers.go

    		if globalLocalNodeName != "" {
    			w.Header().Set(xhttp.AmzRequestHostID, globalLocalNodeNameHex)
    		}
    		h.ServeHTTP(w, r)
    	})
    }
    
    // criticalErrorHandler handles panics and fatal errors by
    // `panic(logger.ErrCritical)` as done by `logger.CriticalIf`.
    //
    // It should be always the first / highest HTTP handler.
    func setCriticalErrorHandler(h http.Handler) http.Handler {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  4. cmd/xl-storage-format_test.go

    	return xlMeta
    }
    
    func (m *xlMetaV1Object) AddTestObjectCheckSum(partNumber int, algorithm BitrotAlgorithm, hash string) {
    	checksum, err := hex.DecodeString(hash)
    	if err != nil {
    		panic(err)
    	}
    	m.Erasure.Checksums[partNumber-1] = ChecksumInfo{partNumber, algorithm, checksum}
    }
    
    // AddTestObjectPart - add a new object part in order.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  5. internal/etag/etag.go

    // has been uploaded using the S3 singlepart API.
    //
    // Parts may panic if the ETag is an invalid multipart
    // ETag.
    func (e ETag) Parts() int {
    	if !e.IsMultipart() {
    		return 1
    	}
    
    	n := bytes.IndexRune(e, '-')
    	parts, err := strconv.Atoi(string(e[n+1:]))
    	if err != nil {
    		panic(err) // malformed ETag
    	}
    	return parts
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  6. cmd/erasure-coding.go

    		once.Do(func() {
    			e, err := reedsolomon.New(dataBlocks, parityBlocks, reedsolomon.WithAutoGoroutines(int(e.ShardSize())))
    			if err != nil {
    				// Error conditions should be checked above.
    				panic(err)
    			}
    			enc = e
    		})
    		return enc
    	}
    	return
    }
    
    // EncodeData encodes the given data and returns the erasure-coded data.
    // It returns an error if the erasure coding failed.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  7. cmd/erasure-encode_test.go

    		}
    		_, err := erasure.Encode(context.Background(), bytes.NewReader(content), writers, buffer, erasure.dataBlocks+1)
    		closeBitrotWriters(writers)
    		if err != nil {
    			panic(err)
    		}
    	}
    }
    
    func BenchmarkErasureEncodeQuick(b *testing.B) {
    	const size = 12 * 1024 * 1024
    	b.Run(" 00|00 ", func(b *testing.B) { benchmarkErasureEncode(2, 2, 0, 0, size, b) })
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  8. internal/etag/etag_test.go

    		}
    		if !Equal(etag, test.Plaintext) {
    			t.Fatalf("Test %d: got '%v' - want '%v'", i, etag, test.Plaintext)
    		}
    	}
    }
    
    func must(s string) ETag {
    	t, err := Parse(s)
    	if err != nil {
    		panic(err)
    	}
    	return t
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  9. istioctl/pkg/validate/validate_test.go

    spec:
      replicas: 1
    `
    )
    
    func fromYAML(in string) *unstructured.Unstructured {
    	var un unstructured.Unstructured
    	if err := yaml.Unmarshal([]byte(in), &un); err != nil {
    		panic(err)
    	}
    	return &un
    }
    
    func TestValidateResource(t *testing.T) {
    	cases := []struct {
    		name  string
    		in    string
    		valid bool
    		warn  bool
    	}{
    		{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jul 25 08:08:36 GMT 2023
    - 21.5K bytes
    - Viewed (0)
  10. src/archive/zip/writer.go

    // existing file, such as a binary executable.
    // It must be called before any data is written.
    func (w *Writer) SetOffset(n int64) {
    	if w.cw.count != 0 {
    		panic("zip: SetOffset called after data was written")
    	}
    	w.cw.count = n
    }
    
    // Flush flushes any buffered data to the underlying writer.
    // Calling Flush is not normally necessary; calling Close is sufficient.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
Back to top