Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
JAVA-378 reallocate buffer to correct size when changing chunksize of…
Browse files Browse the repository at this point in the history
… GridFSInputFile
  • Loading branch information
lesnail committed May 12, 2012
1 parent a31e2e0 commit cfcd2bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/com/mongodb/gridfs/GridFSInputFile.java
Expand Up @@ -144,6 +144,7 @@ public void setChunkSize(long _chunkSize) {
if (_outputStream != null || _savedChunks)
return;
this._chunkSize = _chunkSize;
this._buffer = new byte[(int) _chunkSize];
}

/**
Expand Down

0 comments on commit cfcd2bf

Please sign in to comment.