MCPcopy
hub / github.com/lindb/lindb / Stop

Method Stop

replica/channel_database.go:192–203  ·  view source on GitHub ↗

Stop stops current database write shardChannel.

()

Source from the content-addressed store, hash-verified

190
191// Stop stops current database write shardChannel.
192func (dc *databaseChannel) Stop() {
193 dc.shardChannels.mu.Lock()
194 defer func() {
195 dc.cancel()
196 dc.shardChannels.mu.Unlock()
197 }()
198
199 channels := dc.shardChannels.value.Load().(shard2Channel)
200 for _, channel := range channels {
201 channel.Stop()
202 }
203}
204
205// getChannelByShardID gets the replica shardChannel by shard id
206func (dc *databaseChannel) getChannelByShardID(shardID models.ShardID) (ShardChannel, bool) {

Callers

nothing calls this directly

Calls 4

LockMethod · 0.65
UnlockMethod · 0.65
LoadMethod · 0.65
StopMethod · 0.65

Tested by

no test coverage detected