1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-498 Passed test100.

This commit is contained in:
Roman Nozdrin
2018-12-14 14:42:06 +03:00
parent 46a46aa6b1
commit 29becc2971
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -1104,7 +1104,7 @@ int FileOp::initColumnExtent(
int savedErrno = 0;
// MCOL-498 Try to preallocate the space, fallback to write if fallocate has failed
if (!bOptExtension || pFile->fallocate(0, currFileSize, writeSize))
if ( !bOptExtension || ( nBlocks < 300 && pFile->fallocate(0, currFileSize, writeSize) ))
{
savedErrno = errno;
// Log the failed fallocate() call result
@ -1870,7 +1870,7 @@ int FileOp::initDctnryExtent(
int savedErrno = 0;
// MCOL-498 Try to preallocate the space, fallback to write if fallocate
// has failed
if (!bOptExtension || pFile->fallocate(0, currFileSize, writeSize))
//if (!bOptExtension || pFile->fallocate(0, currFileSize, writeSize))
{
// Log the failed fallocate() call result
if ( bOptExtension )