activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [2/2] activemq-artemis git commit: ARTEMIS-1190 Long/int type mismatch in JDBCSequentialFile.setWritePosition
Date Tue, 30 May 2017 23:00:28 GMT
ARTEMIS-1190 Long/int type mismatch in JDBCSequentialFile.setWritePosition


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/69740a98
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/69740a98
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/69740a98

Branch: refs/heads/master
Commit: 69740a987d580c994a287ba533ae34d1bad407f1
Parents: c39a7af
Author: Erich Duda <eduda@redhat.com>
Authored: Tue May 30 12:34:42 2017 +0200
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Tue May 30 18:59:33 2017 -0400

----------------------------------------------------------------------
 .../activemq/artemis/jdbc/store/file/JDBCSequentialFile.java       | 2 +-
 .../artemis/jdbc/store/file/JDBCSequentialFileFactoryDriver.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/69740a98/artemis-jdbc-store/src/main/java/org/apache/activemq/artemis/jdbc/store/file/JDBCSequentialFile.java
----------------------------------------------------------------------
diff --git a/artemis-jdbc-store/src/main/java/org/apache/activemq/artemis/jdbc/store/file/JDBCSequentialFile.java
b/artemis-jdbc-store/src/main/java/org/apache/activemq/artemis/jdbc/store/file/JDBCSequentialFile.java
index a5f38d7..b8ed3f0 100644
--- a/artemis-jdbc-store/src/main/java/org/apache/activemq/artemis/jdbc/store/file/JDBCSequentialFile.java
+++ b/artemis-jdbc-store/src/main/java/org/apache/activemq/artemis/jdbc/store/file/JDBCSequentialFile.java
@@ -77,7 +77,7 @@ public class JDBCSequentialFile implements SequentialFile {
       this.dbDriver = driver;
    }
 
-   void setWritePosition(int writePosition) {
+   void setWritePosition(long writePosition) {
       this.writePosition = writePosition;
    }
 

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/69740a98/artemis-jdbc-store/src/main/java/org/apache/activemq/artemis/jdbc/store/file/JDBCSequentialFileFactoryDriver.java
----------------------------------------------------------------------
diff --git a/artemis-jdbc-store/src/main/java/org/apache/activemq/artemis/jdbc/store/file/JDBCSequentialFileFactoryDriver.java
b/artemis-jdbc-store/src/main/java/org/apache/activemq/artemis/jdbc/store/file/JDBCSequentialFileFactoryDriver.java
index 822e579..6cf54ff 100644
--- a/artemis-jdbc-store/src/main/java/org/apache/activemq/artemis/jdbc/store/file/JDBCSequentialFileFactoryDriver.java
+++ b/artemis-jdbc-store/src/main/java/org/apache/activemq/artemis/jdbc/store/file/JDBCSequentialFileFactoryDriver.java
@@ -163,7 +163,7 @@ public class JDBCSequentialFileFactoryDriver extends AbstractJDBCDriver
{
             if (rs.next()) {
                Blob blob = rs.getBlob(1);
                if (blob != null) {
-                  file.setWritePosition((int) blob.length());
+                  file.setWritePosition(blob.length());
                } else {
                   logger.warn("ERROR NO BLOB FOR FILE" + "File: " + file.getFileName() +
" " + file.getId());
                }


Mime
View raw message