Function rusteron_archive::bindings::aeron_archive_purge_segments

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

Purge (Detach and delete) 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 count_p out param set to the number of segments deleted @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