Skip to content

Commit

Permalink
OAK-7123 - ChildNodeStateProvider does not return all immediate children
Browse files Browse the repository at this point in the history
Add log for path when maxBufferSize changes. This would enable determining
sub tree having lots of children

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1820280 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
chetanmeh committed Jan 5, 2018
1 parent 1c4a630 commit f98a1c7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ protected NodeStateEntry computeNext() {
}

private NodeStateEntry computeNextEntry() {
maxBufferSize = Math.max(maxBufferSize, buffer.size());
if (buffer.size() > maxBufferSize) {
maxBufferSize = buffer.size();
log.info("Max buffer size changed {} for path {}", maxBufferSize, current.getPath());
}
if (!buffer.isEmpty()) {
return buffer.remove();
}
Expand Down

0 comments on commit f98a1c7

Please sign in to comment.