- Sort Score
- Num 10 results
- Language All
Results 471 - 480 of 3,004 for IF (0.01 seconds)
-
cmd/object-api-getobjectinfo_test.go
if err != nil && !testCase.shouldPass { if testCase.err.Error() != err.Error() { t.Errorf("Test %d: %s: Expected to fail with error \"%s\", but instead failed with error \"%s\" instead", i+1, instanceType, testCase.err.Error(), err.Error()) } } // Test passes as expected, but the output values are verified for correctness here. if err == nil && testCase.shouldPass {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Dec 23 15:46:00 GMT 2022 - 5.6K bytes - Click Count (0) -
cmd/perf-tests.go
go func(i int) { defer wg.Done() var j uint64 if objCountPerThread[i] == 0 { return } for { if objCountPerThread[i] == j { j = 0 } tmpObjName := pathJoin(objNamePrefix, fmt.Sprintf("%d/%d", i, j)) t := time.Now() r, _, _, err := c.GetObject(downloadsCtx, opts.bucketName, tmpObjName, gopts) if err != nil { errResp, ok := err.(minio.ErrorResponse)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 11.8K bytes - Click Count (0) -
cmd/site-replication-utils_gen.go
if err != nil { err = msgp.WrapError(err, "Status") return } case "did": z.DeplID, err = dc.ReadString() if err != nil { err = msgp.WrapError(err, "DeplID") return } case "bkts": var zb0002 uint32 zb0002, err = dc.ReadMapHeader() if err != nil { err = msgp.WrapError(err, "BucketStatuses") return } if z.BucketStatuses == nil {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 7.1K bytes - Click Count (0) -
cmd/net.go
return false, err } if host2 == "" { // If empty host means it is localhost addr2Local = true } else if addr2Local, err = isLocalHost(host2, port2, port2); err != nil { // Host not empty, check if it is local return false, err } // If both of addresses point to the same machine, check if // have the same port if addr1Local && addr2Local { if port1 == port2 {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 9.6K bytes - Click Count (1) -
cmd/os-readdir_test.go
} file := path.Join(os.TempDir(), "issue") if err := os.WriteFile(file, []byte(""), 0o644); err != nil { t.Fatal(err) } defer os.RemoveAll(file) // Check if file is given. if _, err := readDir(path.Join(file, "mydir")); err != errFileNotFound { t.Fatalf("expected = %s, got: %s", errFileNotFound, err) } // Only valid for linux. if runtime.GOOS == "linux" {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue May 27 15:19:03 GMT 2025 - 7.5K bytes - Click Count (0) -
cmd/bootstrap-peer-server.go
_, ok := s1.MinioEnv[k] if !ok { extra = append(extra, k) } } msg := "Expected MINIO_* environment name and values across all servers to be same: " if len(missing) > 0 { msg += fmt.Sprintf(`Missing environment values: %v. `, missing) } if len(mismatching) > 0 { msg += fmt.Sprintf(`Mismatching environment values: %v. `, mismatching) } if len(extra) > 0 {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Oct 01 22:13:18 GMT 2024 - 8.4K bytes - Click Count (0) -
internal/logger/console.go
} } // Error : func Error(msg string, data ...any) { if DisableLog { return } consoleLog(errorMessage, msg, data...) } // Info : func Info(msg string, data ...any) { if DisableLog { return } consoleLog(info, msg, data...) } // Startup : func Startup(msg string, data ...any) { if DisableLog { return } consoleLog(startup, msg, data...) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 7.2K bytes - Click Count (0) -
tests/migrate_test.go
if err != nil { t.Fatalf("DropTable err:%v", err) } DB.Exec(`CREATE EXTENSION IF NOT EXISTS "uuid-ossp";`) err = DB.AutoMigrate(&MissPKUser{}, &MissPKLanguage{}) if err != nil { t.Fatalf("AutoMigrate err:%v", err) } // patch err = DB.AutoMigrate(&MissPKUser{}, &MissPKLanguage{}) if err != nil { t.Fatalf("AutoMigrate err:%v", err)Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Wed Aug 20 04:51:17 GMT 2025 - 65.2K bytes - Click Count (0) -
cmd/metacache-server-pool.go
// we should return 'errs' from per disk if isAllNotFound(errs) { if isAllVolumeNotFound(errs) { return errVolumeNotFound } return nil } if err != nil { return err } if contextCanceled(ctx) { return ctx.Err() } for _, err := range errs { if errors.Is(err, io.EOF) { continue }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 12.9K bytes - Click Count (0) -
internal/config/identity/plugin/config.go
defer h.Unlock() // Update connectivity times if isSuccess { if reqStartTime.After(h.LastCheckSuccess) { h.LastCheckSuccess = reqStartTime } } else { if reqStartTime.After(h.LastCheckFailure) { h.LastCheckFailure = reqStartTime } } // Round the request time *down* to whole minute. reqTimeMinute := reqStartTime.Truncate(time.Minute) if reqTimeMinute.After(h.currentMinute.statsTime) {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 13.3K bytes - Click Count (0)