ARTEMIS-1190 Long/int type mismatch in JDBCSequentialFile.setWritePosition

(cherry picked from commit 69740a987d)
This commit is contained in:
Erich Duda 2017-05-30 12:34:42 +02:00
parent 2d850680d6
commit dc795dc564
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ public class JDBCSequentialFile implements SequentialFile {
this.dbDriver = driver;
}
void setWritePosition(int writePosition) {
void setWritePosition(long writePosition) {
this.writePosition = writePosition;
}

View File

@ -159,7 +159,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());
}