- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 63 for WithCancel (0.18 seconds)
-
cmd/global-heal.go
// NewBgHealSequence creates a background healing sequence // operation which scans all objects and heal them. func newBgHealSequence() *healSequence { reqInfo := &logger.ReqInfo{API: "BackgroundHeal"} ctx, cancelCtx := context.WithCancel(logger.SetReqInfo(GlobalContext, reqInfo)) hs := madmin.HealOpts{ // Remove objects that do not have read-quorum Remove: healDeleteDangling, } return &healSequence{ startTime: UTCNow(),
Created: 2026-04-05 19:28 - Last Modified: 2025-04-04 13:49 - 16.2K bytes - Click Count (0) -
cmd/metacache-walk.go
_, err := opts.UnmarshalMsg(payload) if err != nil { return grid.NewRemoteErr(err) } if !s.checkID(opts.DiskID) { return grid.NewRemoteErr(errDiskNotFound) } ctx, cancel := context.WithCancel(ctx) defer cancel() return grid.NewRemoteErr(s.getStorage().WalkDir(ctx, opts, grid.WriterToChannel(ctx, out)))
Created: 2026-04-05 19:28 - Last Modified: 2025-05-26 07:06 - 12.6K bytes - Click Count (0) -
cmd/admin-handlers.go
} w.WriteHeader(http.StatusOK) } // NetperfHandler - perform mesh style network throughput test func (a adminAPIHandlers) NetperfHandler(w http.ResponseWriter, r *http.Request) { ctx, cancel := context.WithCancel(r.Context()) defer cancel() objectAPI, _ := validateAdminReq(ctx, w, r, policy.HealthInfoAdminAction) if objectAPI == nil { return } if !globalIsDistErasure {
Created: 2026-04-05 19:28 - Last Modified: 2025-09-28 20:59 - 99.7K bytes - Click Count (0) -
tests/transaction_test.go
}) }); err != nil { t.Fatalf("prepare statement and nested transaction coexist: %v", err) } }) } func TestCancelTransaction(t *testing.T) { ctx := context.Background() ctx, cancelFunc := context.WithCancel(ctx) cancelFunc() user := *GetUser("cancel_transaction", Config{}) DB.Create(&user) err := DB.WithContext(ctx).Transaction(func(tx *gorm.DB) error { var result User tx.First(&result, user.ID)Created: 2026-04-05 09:35 - Last Modified: 2025-09-08 09:19 - 13.3K bytes - Click Count (0) -
cmd/batch-rotate.go
if err != nil { return err } wk, err := workers.New(workerSize) if err != nil { // invalid worker size. return err } ctx, cancel := context.WithCancel(ctx) results := make(chan itemOrErr[ObjectInfo], 100) if err := api.Walk(ctx, r.Bucket, r.Prefix, results, WalkOptions{ Marker: lastObject, Filter: selectObj, }); err != nil { cancel()Created: 2026-04-05 19:28 - Last Modified: 2025-08-29 02:39 - 14.7K bytes - Click Count (0) -
cmd/signature-v4-utils_test.go
"testing" "time" "github.com/minio/madmin-go/v3" "github.com/minio/minio/internal/auth" xhttp "github.com/minio/minio/internal/http" ) func TestCheckValid(t *testing.T) { ctx, cancel := context.WithCancel(t.Context()) defer cancel() objLayer, fsDir, err := prepareFS(ctx) if err != nil { t.Fatal(err) } defer os.RemoveAll(fsDir) if err = newTestConfig(globalMinioDefaultRegion, objLayer); err != nil {
Created: 2026-04-05 19:28 - Last Modified: 2025-04-09 14:28 - 14.3K bytes - Click Count (0) -
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 }
Created: 2026-04-05 19:28 - Last Modified: 2025-04-25 05:41 - 34.5K bytes - Click Count (0) -
cmd/object-api-utils_test.go
} // Since `apiRouter` satisfies `http.Handler` it has a ServeHTTP to execute the logic of the handler. // Call the ServeHTTP to execute the handler. apiRouter.ServeHTTP(rec, req) ctx, cancel := context.WithCancel(GlobalContext) defer cancel() // Now check if we actually wrote to backend (regardless of the response // returned by the server). z := obj.(*erasureServerPools) xl := z.serverPools[0].sets[0]
Created: 2026-04-05 19:28 - Last Modified: 2025-08-29 02:39 - 24.1K bytes - Click Count (0) -
internal/dsync/drwmutex.go
time.Sleep(lockRetryBackOff(dm.rng, attempt)) } } } } func (dm *DRWMutex) startContinuousLockRefresh(lockLossCallback func(), id, source string, quorum int) { ctx, cancel := context.WithCancel(context.Background()) dm.m.Lock() dm.cancelRefresh = cancel dm.m.Unlock() go func() { defer cancel() refreshTimer := time.NewTimer(dm.refreshInterval) defer refreshTimer.Stop()
Created: 2026-04-05 19:28 - Last Modified: 2025-08-29 02:39 - 20.3K bytes - Click Count (0) -
cmd/admin-heal-ops.go
hs madmin.HealOpts, forceStart bool, ) *healSequence { reqInfo := &logger.ReqInfo{RemoteHost: clientAddr, API: "Heal", BucketName: bucket} reqInfo.AppendTags("prefix", objPrefix) ctx, cancel := context.WithCancel(logger.SetReqInfo(ctx, reqInfo)) clientToken := mustGetUUID() return &healSequence{ bucket: bucket, object: objPrefix, reportProgress: true, startTime: UTCNow(),Created: 2026-04-05 19:28 - Last Modified: 2025-08-29 02:39 - 25.4K bytes - Click Count (0)