[8.4] [MOD-12243] fix: fix concurrency issue on Reducer#7220
Merged
redisearch-backport-pull-request[bot] merged 1 commit into8.4from Nov 4, 2025
Merged
[8.4] [MOD-12243] fix: fix concurrency issue on Reducer#7220redisearch-backport-pull-request[bot] merged 1 commit into8.4from
redisearch-backport-pull-request[bot] merged 1 commit into8.4from
Conversation
* fix: fix concurrency issue on Reducer * test: fix test distagg * fix: make it static array * fix: fix proper static * Update src/module-init/module-init.c * Update src/aggregate/reducer.c Co-authored-by: GuyAv46 <[email protected]> --------- Co-authored-by: GuyAv46 <[email protected]> (cherry picked from commit 7184778)
JoanFM
approved these changes
Nov 4, 2025
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 8.4 #7220 +/- ##
==========================================
- Coverage 85.67% 85.64% -0.03%
==========================================
Files 327 326 -1
Lines 51945 50941 -1004
Branches 10921 10921
==========================================
- Hits 44503 43629 -874
+ Misses 7276 7146 -130
Partials 166 166
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Backport of #7214 to
8.4.Note
Replaces the dynamic reducer registry with a fixed compile-time table, updates
RDCR_GetFactoryto iterate it, and removes all runtime registration code and declarations.static constglobalRegistrywith 14 built-in reducers andREGISTRY_SIZE+static_assert.RDCR_GetFactorynow iterates the fixed registry (no lazy registration).RDCR_RegisterFactory,RDCR_RegisterBuiltins,isBuiltinsRegistered, andRDCR_XBUILTINmacro insrc/aggregate/reducer.c.src/aggregate/reducer.h.Written by Cursor Bugbot for commit c7b434a. This will update automatically on new commits. Configure here.