Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not delete IPTV channel in DeleteChannel #990

Merged
merged 1 commit into from
Dec 7, 2024

Conversation

kmdewaal
Copy link
Contributor

@kmdewaal kmdewaal commented Dec 7, 2024

The function DeleteChannel does not really delete a channel but marks it for deletion when it is no longer referenced. This is introduced in commit 2e26f7f. Because the channel is not really deleted, as in removed from the database, the associated record in table iptv_channel should also not be deleted here.
The channel is removed from the database in a periodic housekeeping task when there are no more recordings referencing that channel and when at least one day has passed since the channel was marked for deletion.
When the channel is finally deleted then also the corresponding entry in iptv_channel, when it exists, should be deleted.

The function DeleteChannel does not really delete a channel
but marks it for deletion when it is no longer referenced.
This is introduced in commit 2e26f7f.
Because the channel is not really deleted, as in removed from
the database, the associated record in table iptv_channel
should also not be deleted here.
The chhannel is removed from the database in a periodic
housekeeping task when there are no more recordings referencing
that channel and when at least one day has passed since the
channel was marked for deletion.
When the channel is finally deleted then also the corresponding
entry in iptv_channel, when it exists, should be deleted.
@kmdewaal kmdewaal merged commit 08c0b0c into MythTV:master Dec 7, 2024
8 of 10 checks passed
@kmdewaal kmdewaal deleted the deletechannel branch December 7, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant