Function rusteron_archive::bindings::aeron_archive_detach_segments

source ยท
pub unsafe extern "C" fn aeron_archive_detach_segments(
    aeron_archive: *mut aeron_archive_t,
    recording_id: i64,
    new_start_position: i64,
) -> c_int
Expand description

Detach segments from the beginning of a recording up to the provided new start position.

The new start position must be the first byte position of a segment after the existing start position.

It is not possible to detach segments which are active for recording or being replayed.

@param aeron_archive the archive client @param recording_id the id of an existing recording @param new_start_position the new starting position for the recording after the segments are detached @return 0 for success, -1 for failure