mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-09 03:25:20 +00:00
ARTEMIS-1190 Long/int type mismatch in JDBCSequentialFile.setWritePosition
(cherry picked from commit 69740a987d580c994a287ba533ae34d1bad407f1)
This commit is contained in:
parent
2d850680d6
commit
dc795dc564
@ -77,7 +77,7 @@ public class JDBCSequentialFile implements SequentialFile {
|
|||||||
this.dbDriver = driver;
|
this.dbDriver = driver;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setWritePosition(int writePosition) {
|
void setWritePosition(long writePosition) {
|
||||||
this.writePosition = writePosition;
|
this.writePosition = writePosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ public class JDBCSequentialFileFactoryDriver extends AbstractJDBCDriver {
|
|||||||
if (rs.next()) {
|
if (rs.next()) {
|
||||||
Blob blob = rs.getBlob(1);
|
Blob blob = rs.getBlob(1);
|
||||||
if (blob != null) {
|
if (blob != null) {
|
||||||
file.setWritePosition((int) blob.length());
|
file.setWritePosition(blob.length());
|
||||||
} else {
|
} else {
|
||||||
logger.warn("ERROR NO BLOB FOR FILE" + "File: " + file.getFileName() + " " + file.getId());
|
logger.warn("ERROR NO BLOB FOR FILE" + "File: " + file.getFileName() + " " + file.getId());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user