Skip to content

Commit c730da4

Browse files
committed
Fixed CorruptSSTableException to use Path to get proper tenant info
1 parent ca461bd commit c730da4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java/org/apache/cassandra/io/sstable/CorruptSSTableException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import java.nio.file.Path;
2121

2222
import org.apache.cassandra.io.util.File;
23+
import org.apache.cassandra.io.util.PathUtils;
2324
import org.apache.cassandra.utils.DseLegacy;
2425

2526
public class CorruptSSTableException extends RuntimeException
@@ -34,7 +35,7 @@ public CorruptSSTableException(Throwable cause, File file)
3435

3536
public CorruptSSTableException(Throwable cause, String path)
3637
{
37-
this(cause, new File(path));
38+
this(cause, new File(PathUtils.getPath(path)));
3839
}
3940

4041
protected CorruptSSTableException(String msg, Throwable cause, File file)
@@ -48,5 +49,4 @@ public CorruptSSTableException(Throwable cause, Path path)
4849
{
4950
this(cause, new File(path));
5051
}
51-
5252
}

0 commit comments

Comments
 (0)