Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
Signed-off-by: CalvinNeo <[email protected]>
  • Loading branch information
CalvinNeo committed Jan 5, 2024
1 parent 77ee5dc commit 4096e6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proxy_components/engine_store_ffi/src/core/fast_add_peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,6 @@ impl<T: Transport + 'static, ER: RaftEngine> ProxyForwarder<T, ER> {
snapshot.save_meta_file()?;
}
pb_snapshot_data.set_meta(snapshot_meta);
pb_snapshot.set_data(pb_snapshot_data.write_to_bytes().unwrap().into());
}
// Set `pb_snapshot_metadata`
{
Expand All @@ -509,6 +508,8 @@ impl<T: Transport + 'static, ER: RaftEngine> ProxyForwarder<T, ER> {
pb_snapshot_metadata.set_term(key.term);
}

pb_snapshot.set_data(pb_snapshot_data.write_to_bytes().unwrap().into());

// Send reponse
let mut response = RaftMessage::default();
let epoch = new_region.get_region_epoch();
Expand Down

0 comments on commit 4096e6d

Please sign in to comment.