MCPcopy
hub / github.com/grafana/dskit / FlushOnShutdown

Method FlushOnShutdown

ring/lifecycler.go:1046–1048  ·  view source on GitHub ↗

FlushOnShutdown returns if flushing is enabled if transfer fails on a shutdown.

()

Source from the content-addressed store, hash-verified

1044
1045// FlushOnShutdown returns if flushing is enabled if transfer fails on a shutdown.
1046func (i *Lifecycler) FlushOnShutdown() bool {
1047 return i.flushOnShutdown.Load()
1048}
1049
1050// SetFlushOnShutdown enables/disables flush on shutdown if transfer fails.
1051// Passing 'true' enables it, and 'false' disabled it.

Callers 1

processShutdownMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected