ExtSnapshotStreamingState updates the server's import mode
(enable bool)
| 38 | |
| 39 | // ExtSnapshotStreamingState updates the server's import mode |
| 40 | func 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 |
| 47 | func IsExtSnapshotStreamingStateTrue() bool { |
no test coverage detected