diff options
author | drh <drh@noemail.net> | 2010-05-21 18:24:06 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2010-05-21 18:24:06 +0000 |
commit | c527669df560befda372dff4af13dfafd307a52e (patch) | |
tree | 5f95be4fb63329fbfe7e75df57665a1542378d0a /src/os_unix.c | |
parent | 8067adbc3f17ba9eb3d71f88efe29f31717a40c5 (diff) | |
download | sqlite-c527669df560befda372dff4af13dfafd307a52e.tar.gz sqlite-c527669df560befda372dff4af13dfafd307a52e.zip |
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
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 0a302a455..6cb594478 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -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 |