Function rusteron_archive::bindings::aeron_archive_migrate_segments
source ยท pub unsafe extern "C" fn aeron_archive_migrate_segments(
count_p: *mut i64,
aeron_archive: *mut aeron_archive_t,
src_recording_id: i64,
dst_recording_id: i64,
) -> c_int
Expand description
Migrate segments from a source recording and attach them to the beginning of a destination recording.
The source recording must match the destination recording for segment length, term length, mtu length, stream id, plus the stop position and term id of the source must join with the start position of the destination and be on a segment boundary.
The source recording will be effectively truncated back to its start position after the migration.
@param count_p out param set to the number of segments deleted @param aeron_archive the archive client @param src_recording_id the id of an existing recording from which segments will be migrated @param dst_recording_id the id of an existing recording to which segments will be migrated @return 0 for success, -1 for failure