Skip to content

Commit

Permalink
Merge branch 'IGNITE-23114' into IGNITE-23114-sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
skorotkov committed Oct 3, 2024
2 parents fa4da27 + 5f31d41 commit e6992ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class JdbcBlobMemoryStorage implements JdbcBlobStorage {

int remaining = cnt;

while (remaining > 0 && pos.getPos() < totalCnt) {
while (remaining > 0 && pos.getPos() < totalCnt && buf != null) {
int toCopy = Math.min(remaining, buf.length - getBufPos(pos));

if (toCopy > totalCnt - pos.getPos())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class JdbcBlobTmpFileStorage implements JdbcBlobStorage {
try (OutputStream diskOutputStream = Files.newOutputStream(tempFile.toPath())) {
stream.transferTo(diskOutputStream);
}
catch (RuntimeException | Error e) {
catch (Exception e) {
fileCleaner.clean();

throw e;
Expand Down

0 comments on commit e6992ff

Please sign in to comment.