diff --git a/writeengine/shared/.we_fileop.h.swo b/writeengine/shared/.we_fileop.h.swo deleted file mode 100644 index 46e47f43e..000000000 Binary files a/writeengine/shared/.we_fileop.h.swo and /dev/null differ diff --git a/writeengine/shared/we_fileop.cpp b/writeengine/shared/we_fileop.cpp index e08bea3fb..e028705f1 100644 --- a/writeengine/shared/we_fileop.cpp +++ b/writeengine/shared/we_fileop.cpp @@ -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 )