提交 e7c58238 authored 作者: noelgrandin's avatar noelgrandin

fix: I should have been using remainingBytes, not length.

上级 c18a51d4
......@@ -616,7 +616,7 @@ public class LobStorageBackend implements LobStorageInterface {
public LobInputStream(long lob, long byteCount) {
this.lob = lob;
remainingBytes = byteCount;
this.remainingBytes = byteCount;
this.length = byteCount;
}
......@@ -670,10 +670,10 @@ public class LobStorageBackend implements LobStorageInterface {
@Override
public int available() throws IOException {
if (length > Integer.MAX_VALUE) {
if (remainingBytes > Integer.MAX_VALUE) {
return Integer.MAX_VALUE;
}
return MathUtils.convertLongToInt(length);
return MathUtils.convertLongToInt(remainingBytes);
}
@Override
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论