提交 29b03e52 编写于 作者: V Vlad Ilyushchenko

version fixes

上级 3c18051c
......@@ -160,17 +160,19 @@ class JournalConfigurationImpl implements JournalConfiguration {
try (CompositePath oldName = new CompositePath()) {
try (CompositePath newName = new CompositePath()) {
String path = journalBase.getAbsolutePath();
oldName.of(path).concat(location).$();
newName.of(path).concat(to).$();
if (!Files.exists(oldName)) {
throw new JournalException("Journal does not exist");
}
if (Os.type == Os.WINDOWS) {
oldName.of("\\\\?\\").concat(path).concat(location).$();
newName.of("\\\\?\\").concat(path).concat(to).$();
} else {
oldName.of(path).concat(location).$();
newName.of(path).concat(to).$();
}
if (!Files.exists(oldName)) {
throw new JournalException("Journal does not exist");
}
Lock lock = LockManager.lockExclusive(oldName.toString());
try {
......
......@@ -29,7 +29,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<version>1.0.1-SNAPSHOT</version>
<version>1.0.1</version>
<groupId>org.questdb</groupId>
<artifactId>examples</artifactId>
<packaging>jar</packaging>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册