Skip to content

MOD-11216: Fix rpcountFree casting#6762

Merged
raz-mon merged 2 commits intomasterfrom
razmon-fix_counter_free
Sep 8, 2025
Merged

MOD-11216: Fix rpcountFree casting#6762
raz-mon merged 2 commits intomasterfrom
razmon-fix_counter_free

Conversation

@raz-mon
Copy link
Collaborator

@raz-mon raz-mon commented Sep 2, 2025

Fixes a bad casting in the free function logic of the counter result processor.
Introduced in #1891.

@raz-mon raz-mon changed the title Fix rpcountFree casting MOD-11216: Fix rpcountFree casting Sep 2, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a casting bug in the rpcountFree function where the result processor was incorrectly cast to RPScorer instead of RPCounter. This ensures the proper type is used when freeing counter result processor resources.

  • Corrects incorrect type casting in the counter result processor's free function

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@codecov
Copy link

codecov bot commented Sep 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.19%. Comparing base (b0859f2) to head (142cac9).
⚠️ Report is 12 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6762      +/-   ##
==========================================
- Coverage   87.23%   87.19%   -0.04%     
==========================================
  Files         288      288              
  Lines       45262    45262              
  Branches     8109     8109              
==========================================
- Hits        39484    39468      -16     
- Misses       5655     5671      +16     
  Partials      123      123              
Flag Coverage Δ
flow 84.52% <100.00%> (-0.16%) ⬇️
unit 49.29% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@raz-mon raz-mon added this pull request to the merge queue Sep 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 3, 2025
@raz-mon raz-mon added this pull request to the merge queue Sep 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 3, 2025
@raz-mon raz-mon added this pull request to the merge queue Sep 4, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 4, 2025
@raz-mon raz-mon added this pull request to the merge queue Sep 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 7, 2025
@raz-mon raz-mon added this pull request to the merge queue Sep 8, 2025
Merged via the queue into master with commit 02a2c3f Sep 8, 2025
29 checks passed
@raz-mon raz-mon deleted the razmon-fix_counter_free branch September 8, 2025 05:57
redisearch-backport-pull-request bot pushed a commit that referenced this pull request Sep 8, 2025
* Fix rpcountFree casting

* Remove comment

(cherry picked from commit 02a2c3f)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 2.8:

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Sep 8, 2025
* Fix rpcountFree casting

* Remove comment

(cherry picked from commit 02a2c3f)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 2.6:

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Sep 8, 2025
* Fix rpcountFree casting

* Remove comment

(cherry picked from commit 02a2c3f)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 2.10:

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Sep 8, 2025
* Fix rpcountFree casting

* Remove comment

(cherry picked from commit 02a2c3f)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 8.2:

github-merge-queue bot pushed a commit that referenced this pull request Sep 15, 2025
MOD-11216: Fix rpcountFree casting (#6762)

* Fix rpcountFree casting

* Remove comment

(cherry picked from commit 02a2c3f)

Co-authored-by: Raz Monsonego <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Sep 15, 2025
MOD-11216: Fix rpcountFree casting (#6762)

* Fix rpcountFree casting

* Remove comment

(cherry picked from commit 02a2c3f)

Co-authored-by: Raz Monsonego <[email protected]>
lerman25 pushed a commit that referenced this pull request Sep 24, 2025
* Fix rpcountFree casting

* Remove comment
github-merge-queue bot pushed a commit that referenced this pull request Oct 8, 2025
MOD-11216: Fix rpcountFree casting (#6762)

* Fix rpcountFree casting

* Remove comment

(cherry picked from commit 02a2c3f)

Co-authored-by: Raz Monsonego <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Oct 8, 2025
MOD-11216: Fix rpcountFree casting (#6762)

* Fix rpcountFree casting

* Remove comment

(cherry picked from commit 02a2c3f)

Co-authored-by: Raz Monsonego <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Oct 8, 2025
MOD-11216: Fix rpcountFree casting (#6762)

* Fix rpcountFree casting

* Remove comment

(cherry picked from commit 02a2c3f)

Co-authored-by: Raz Monsonego <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants