bigbluebutton-Github/record-and-playback/core/lib/recordandplayback
Calvin Walton beab29d39d Ensure the archiver deletes events from redis for the last segment
Issue #6338

It looks like there was a logic error in the code that was causing it
to break out of the event deletion loop early when deleting events for
the last (or only) segment in a recording. (In this case, last_index
is -1, so i >= last_index is always true).

The trim_events_for call was always succeeding, so the events were
being removed from the event list (meeting:{ID}:recordings key) even
though the events themselves hadn't been deleted in the loop.

I've moved the trim_events_for call to below the event deletion loop
to ensure that if the archive script is interrupted, the events list
will contain all not-yet-deleted events.
2018-12-11 14:03:00 -05:00
..
edl RaP: Convert aspect ratio numbers to int before checking value 2018-06-22 10:06:34 -04:00
generators Merge branch 'playback-async-requests' of https://github.com/fcecagno/bigbluebutton into v2.2-dev 2018-07-24 09:56:50 -04:00
edl.rb Various recording script fixes & cleanups 2017-08-18 15:24:54 -04:00
events_archiver.rb Ensure the archiver deletes events from redis for the last segment 2018-12-11 14:03:00 -05:00