bigbluebutton-Github/record-and-playback
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
..
core Ensure the archiver deletes events from redis for the last segment 2018-12-11 14:03:00 -05:00
podcast/scripts Fixes podcast undefined method xpath errors 2018-12-06 10:50:48 -02:00
presentation Merge pull request #6100 from kepstin/bbb-20-rec-fixes 2018-09-21 14:38:40 -04:00
screenshare RnP: Fix bitrate in screenshare.yml 2018-05-11 11:58:54 -04:00
slides Delete the 'slides' processing scripts 2014-11-13 11:15:43 -02:00
changelog.md a log file by meeting in archive phase 2013-04-29 16:03:21 -05:00
deploy.sh cleanup 2018-07-12 00:06:14 -03:00