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

Backport to 2.12.x: #6113: Fix planner distributed table count #6120

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

timescale-automation
Copy link

This is an automated backport of #6113: Fix planner distributed table count.
The original issue is #5966.
This PR will be merged automatically after all the relevant CI checks pass. If this fix should not be backported, or will be backported manually, just close this PR. You can use the backport branch to add your changes, it won't be modified automatically anymore.

For more details, please see the documentation

Original description

Fix planner distributed table count

The check for a distributed hypertable was done after ht had been changed to the compressed hypertable potentially leading to miscount or even segfault when the cache lookup for the compressed hypertable returned NULL.

Fixes #5966

The check for a distributed hypertable was done after ht had been
changed to the compressed hypertable potentially leading to miscount
or even segfault when the cache lookup for the compressed hypertable
returned NULL.

(cherry picked from commit 727a027)
@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

Merging #6120 (b8abf94) into 2.12.x (ec99b00) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           2.12.x    #6120      +/-   ##
==========================================
- Coverage   81.51%   81.47%   -0.04%     
==========================================
  Files         246      246              
  Lines       56781    56734      -47     
  Branches    12588    12568      -20     
==========================================
- Hits        46284    46225      -59     
+ Misses       8115     8097      -18     
- Partials     2382     2412      +30     
Files Coverage Δ
src/planner/planner.c 90.50% <100.00%> (+0.13%) ⬆️

... and 46 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@svenklemm svenklemm disabled auto-merge September 26, 2023 19:16
@svenklemm svenklemm merged commit 0e6f9cf into 2.12.x Sep 26, 2023
34 of 35 checks passed
@svenklemm svenklemm deleted the backport/2.12.x/6113 branch September 26, 2023 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is-auto-backport PR created by backport automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants