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

Copy scheduled_jobs list before sorting it #5543

Merged
merged 2 commits into from
Apr 14, 2023

Commits on Apr 14, 2023

  1. Update bgw_custom testcase

    Added a few cleanup steps and updated a test logic to make the testcase
    runs more stable.
    lkshminarayanan committed Apr 14, 2023
    Configuration menu
    Copy the full SHA
    a63d7c0 View commit details
    Browse the repository at this point in the history
  2. Copy scheduled_jobs list before sorting it

    The start_scheduled_jobs function mistakenly sorts the scheduled_jobs
    list in-place. As a result, when the ts_update_scheduled_jobs_list
    function compares the updated list of scheduled jobs with the existing
    scheduled jobs list, it is comparing a list that is sorted by job_id to
    one that is sorted by next_start time. Fix that by properly copying the
    scheduled_jobs list into a new list and use that for sorting.
    
    Fixes timescale#5537
    lkshminarayanan committed Apr 14, 2023
    Configuration menu
    Copy the full SHA
    aa1d7bf View commit details
    Browse the repository at this point in the history