smiklosovic commented on code in PR #1781:
URL: https://github.com/apache/cassandra/pull/1781#discussion_r948907235


##########
src/java/org/apache/cassandra/service/snapshot/SnapshotLoader.java:
##########
@@ -79,15 +79,19 @@ public SnapshotLoader(Directories directories)
         
this(directories.getCFDirectories().stream().map(File::toPath).collect(Collectors.toList()));
     }
 
-    public Set<TableSnapshot> loadSnapshots()
+    public Set<TableSnapshot> loadSnapshots(String keyspace)
     {
+        int maxDepth = keyspace == null ? 5 : 4;

Review Comment:
   I see that you had `5` in maxDepth on walking. If we supply `keyspace`, we 
basically move one level "down" so is not it true that your max depth of `5` 
suddenly becomes `4`?



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to