Joscorbe commented on code in PR #3114:
URL: https://github.com/apache/jackrabbit-oak/pull/3114#discussion_r3971205011


##########
oak-run/src/main/js/oak-mongo.js:
##########
@@ -145,7 +145,8 @@ var oak = (function(global){
         }
         var depth = pathDepth(path);
         var totalCount = 0;
-        var count = db.nodes.count({_id: pathFilter(depth + 1, path)});
+        var childDepth = path == "/" ? depth + 1 : depth;

Review Comment:
   I don't see exactly what is the difference, this will change the behaviour 
only when the path is /, so root. In the rest of cases it seems to do the same 
as before.



-- 
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]

Reply via email to