1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Fix early EOF for file reading

Bad 'if' statement caused an EOF to trigger on the first buffer fill for
regular file reading.
This commit is contained in:
Andrew Hutchings
2019-09-24 18:08:28 +01:00
parent fe8228e50a
commit 7fb1a7bd34

View File

@ -514,7 +514,7 @@ int TableInfo::readTableData( )
fCurrentReadBuffer = (fCurrentReadBuffer + 1) % fReadBufCount;
// bufferCount++;
if ( (fHandle && feof(fHandle)) || (fS3ReadLength == fS3ParseLength) )
if ( (fHandle && feof(fHandle)) || (fReadFromS3 && (fS3ReadLength == fS3ParseLength)) )
{
timeval readFinished;
gettimeofday(&readFinished, NULL);