mirror of https://github.com/apache/cassandra
Use abolute path when checking file stores
Patch by brandonwilliams; reviewed by bereng for CASSANDRA-17084
This commit is contained in:
parent
89c6addb50
commit
76f8333e9b
|
|
@ -631,7 +631,7 @@ public final class PathUtils
|
|||
{
|
||||
try
|
||||
{
|
||||
Path ancestor = findExistingAncestor(path.normalize());
|
||||
Path ancestor = findExistingAncestor(path.toAbsolutePath().normalize());
|
||||
if (ancestor == null)
|
||||
{
|
||||
orElse.accept(new NoSuchFileException(path.toString()));
|
||||
|
|
|
|||
Loading…
Reference in New Issue