mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-08 11:05:34 +00:00
This closes #1745
This commit is contained in:
commit
7232302f03
@ -366,14 +366,7 @@ final class MappedSequentialFile implements SequentialFile {
|
||||
|
||||
@Override
|
||||
public void renameTo(String newFileName) throws Exception {
|
||||
try {
|
||||
close();
|
||||
} catch (Exception e) {
|
||||
if (e instanceof IOException) {
|
||||
factory.onIOError(new ActiveMQIOErrorException(e.getMessage(), e), e.getMessage(), this);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
close();
|
||||
if (this.fileName == null) {
|
||||
this.fileName = this.file.getName();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user