Skip to content

Commit

Permalink
HPCC-32267 Suppress buffer io if compressed in write stream
Browse files Browse the repository at this point in the history
Signed-off-by: Jake Smith <[email protected]>
  • Loading branch information
jakesmith committed Jul 17, 2024
1 parent 52cb0fe commit c6413d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/thorhelper/thorcommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,10 @@ IExtRowWriter *createRowWriter(IFile *iFile, IRowInterfaces *rowIf, unsigned fla
{
OwnedIFileIO iFileIO;
if (TestRwFlag(flags, rw_compress))
{
flags &= ~rw_buffered; // if compressed, do not want buffered stream as well
iFileIO.setown(createCompressedFileWriter(iFile, rowIf, flags, compressor, compressorBlkSz));
}
else
iFileIO.setown(iFile->open((flags & rw_extend)?IFOwrite:IFOcreate));
if (!iFileIO)
Expand Down

0 comments on commit c6413d4

Please sign in to comment.