MCPcopy
hub / github.com/NVIDIA/aistore / beginStreams

Method beginStreams

reb/globrun.go:437–453  ·  view source on GitHub ↗
(config *cmn.Config)

Source from the content-addressed store, hash-verified

435}
436
437func (reb *Reb) beginStreams(config *cmn.Config) {
438 debug.Assert(reb.stages.stage.Load() == rebStageInit)
439
440 xreb := reb.xctn()
441 reb.dm.SetXact(xreb)
442 reb.dm.Open()
443 pushArgs := bundle.Args{
444 Net: reb.dm.NetC(),
445 Trname: trnamePsh,
446 Multiplier: config.Rebalance.SbundleMult,
447 Extra: &transport.Extra{SenderID: xreb.ID()},
448 }
449 reb.pushes = bundle.NewStreams(reb.t.Sowner(), reb.t.Snode(), transport.NewIntraDataClient(), pushArgs)
450
451 reb.laterx.Store(false)
452 reb.inQueue.Store(0)
453}
454
455func (reb *Reb) abortStreams() {
456 reb.dm.Abort()

Callers 1

initRenewMethod · 0.95

Calls 12

xctnMethod · 0.95
AssertFunction · 0.92
NewStreamsFunction · 0.92
NewIntraDataClientFunction · 0.92
SetXactMethod · 0.80
NetCMethod · 0.80
OpenMethod · 0.65
IDMethod · 0.65
SownerMethod · 0.65
SnodeMethod · 0.65
LoadMethod · 0.45
StoreMethod · 0.45

Tested by

no test coverage detected