Skip to content

Commit

Permalink
also cleanup "Recording .. missing playback row"
Browse files Browse the repository at this point in the history
  • Loading branch information
scottlamb committed Feb 12, 2021
1 parent 7f711ee commit fdb6603
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/db/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,12 @@ fn compare_stream(conn: &rusqlite::Connection, dir_id: i32, stream_id: i32, opts
None => {
error!("Recording {} missing playback row: {:#?}", id, recording);
printed_error = true;
if opts.trash_orphan_sample_files {
ctx.files_to_trash.insert((dir_id, id));
}
if opts.delete_orphan_rows { // also delete recording/integrity rows, if any.
ctx.rows_to_delete.insert(id);
}
},
}
match recording.file {
Expand Down

0 comments on commit fdb6603

Please sign in to comment.