MCPcopy
hub / github.com/dgraph-io/dgraph / ExtSnapshotStreamingState

Function ExtSnapshotStreamingState

x/health.go:40–44  ·  view source on GitHub ↗

ExtSnapshotStreamingState updates the server's import mode

(enable bool)

Source from the content-addressed store, hash-verified

38
39// ExtSnapshotStreamingState updates the server's import mode
40func ExtSnapshotStreamingState(enable bool) {
41 glog.Info("[import] Updating import mode to ", enable)
42 setStatus(&extSnapshotStreamingState, enable)
43 setStatus(&drainingMode, enable)
44}
45
46// IsExtSnapshotStreamingStateTrue returns whether the server is in import mode or not
47func IsExtSnapshotStreamingStateTrue() bool {

Callers 3

StreamExtSnapshotMethod · 0.92
StreamExtSnapshotMethod · 0.92
applyCommittedMethod · 0.92

Calls 2

setStatusFunction · 0.85
InfoMethod · 0.80

Tested by

no test coverage detected