1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Comment out the SQLITE_FCNTL_SIZE_HINT from os_unix.c since it does not

seem to provide any performance gain there.

FossilOrigin-Name: 7d01309da658d6b658c1b2e53bbdc5112fb0a4d9
This commit is contained in:
drh
2010-05-21 18:24:06 +00:00
parent 8067adbc3f
commit c527669df5
3 changed files with 20 additions and 8 deletions

View File

@@ -3046,9 +3046,11 @@ static int unixFileControl(sqlite3_file *id, int op, void *pArg){
return SQLITE_OK;
}
case SQLITE_FCNTL_SIZE_HINT: {
#if 0 /* No performance advantage seen on Linux */
sqlite3_int64 szFile = *(sqlite3_int64*)pArg;
unixFile *pFile = (unixFile*)id;
ftruncate(pFile->h, szFile);
#endif
return SQLITE_OK;
}
#ifndef NDEBUG