Skip to content

Commit

Permalink
add io.mycat.router.mycat1xfunction.PartitionByFileMap path of tip
Browse files Browse the repository at this point in the history
  • Loading branch information
junwen12221 committed Jan 4, 2022
1 parent 98c582e commit c1bec0a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ public void init(ShardingTableHandler tableHandler, Map<String, Object> prot, Ma
.getResourceAsStream(mapFile);
if (fin == null) {
try {
fin = new FileInputStream(Paths.get(mapFile).toAbsolutePath().toFile());
Path path = Paths.get(mapFile).toAbsolutePath();
fin = new FileInputStream(path.toFile());
LOGGER.info("PartitionByFileMap path is "+path);
} catch (IOException e) {
LOGGER.error("can not find file", e);
}
Expand Down

0 comments on commit c1bec0a

Please sign in to comment.