loganasherjones commented on code in PR #5373:
URL: https://github.com/apache/accumulo/pull/5373#discussion_r1982645634
##########
core/src/main/java/org/apache/accumulo/core/iterators/user/VisibilityFilter.java:
##########
@@ -73,6 +73,15 @@ public void init(SortedKeyValueIterator<Key,Value> source,
Map<String,String> op
this.cache = new LRUMap<>(1000);
}
+ @Override
+ public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env) {
+ VisibilityFilter result = (VisibilityFilter) super.deepCopy(env);
+ result.filterInvalid = this.filterInvalid;
+ result.accessEvaluator = this.accessEvaluator;
+ result.cache = new LRUMap<>(1000);
Review Comment:
Agreed, no reason to create a new one.
--
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]