Function tikv::server::snap::send_snap [−][src]
pub fn send_snap(
env: Arc<Environment>,
mgr: SnapManager,
security_mgr: Arc<SecurityManager>,
cfg: &Config,
addr: &str,
msg: RaftMessage
) -> Result<impl Future<Output = Result<SendStat>>>
Send the snapshot to specified address.
It will first send the normal raft snapshot message and then send the snapshot file.