nfsantos commented on code in PR #2098:
URL: https://github.com/apache/jackrabbit-oak/pull/2098#discussion_r1967174149
##########
oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/spi/editor/FulltextIndexEditor.java:
##########
@@ -144,8 +145,11 @@ public void leave(NodeState before, NodeState after)
}
}
- for (Aggregate.Matcher m : matcherState.affectedMatchers) {
- m.markRootDirty();
+ for (int i = 0; i < matcherState.matched.size(); i++) {
+ if (matcherState.affectedMatchers.get(i)) {
+ Aggregate.Matcher m = matcherState.matched.get(i);
+ m.markRootDirty();
+ }
Review Comment:
Good idea, I changed the code to iterate over the BitSet instead over all
the matchers.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]