You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ga...@apache.org on 2018/01/03 02:53:04 UTC
[1/2] activemq-artemis git commit: ARTEMIS-1406 removing impossible
instanceof
Repository: activemq-artemis
Updated Branches:
refs/heads/master 4fd2e4e6c -> d905af993
ARTEMIS-1406 removing impossible instanceof
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/94b53c67
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/94b53c67
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/94b53c67
Branch: refs/heads/master
Commit: 94b53c67c0e346d9fa89fa652ff5aaa64ec60415
Parents: 4fd2e4e
Author: Justin Bertram <jb...@apache.org>
Authored: Fri Sep 29 15:21:37 2017 -0500
Committer: Howard Gao <ho...@gmail.com>
Committed: Wed Jan 3 10:50:13 2018 +0800
----------------------------------------------------------------------
.../artemis/core/io/mapped/MappedSequentialFile.java | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/94b53c67/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/mapped/MappedSequentialFile.java
----------------------------------------------------------------------
diff --git a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/mapped/MappedSequentialFile.java b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/mapped/MappedSequentialFile.java
index aec4723..4c5e23a 100644
--- a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/mapped/MappedSequentialFile.java
+++ b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/mapped/MappedSequentialFile.java
@@ -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();
}
[2/2] activemq-artemis git commit: This closes #1739
Posted by ga...@apache.org.
This closes #1739
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/d905af99
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/d905af99
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/d905af99
Branch: refs/heads/master
Commit: d905af993bde7ca2f99da148d65e58d865a1b151
Parents: 4fd2e4e 94b53c6
Author: Howard Gao <ho...@gmail.com>
Authored: Wed Jan 3 10:51:45 2018 +0800
Committer: Howard Gao <ho...@gmail.com>
Committed: Wed Jan 3 10:51:45 2018 +0800
----------------------------------------------------------------------
.../artemis/core/io/mapped/MappedSequentialFile.java | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
----------------------------------------------------------------------