Skip to content

Commit

Permalink
MMapDataAccess: fix bug for larger files
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Jan 27, 2020
1 parent 9518488 commit 72b7073
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ public void trimTo(long capacity) {
// windows does not allow changing the length of an open files
if (!Constants.WINDOWS) {
// reduce file size
raFile.setLength(HEADER_OFFSET + remainingSegNo * segmentSizeInBytes);
raFile.setLength(HEADER_OFFSET + (long) remainingSegNo * segmentSizeInBytes);
}
} catch (Exception ex) {
throw new RuntimeException(ex);
Expand Down

0 comments on commit 72b7073

Please sign in to comment.