diff options
Diffstat (limited to 'ext/misc/vfslog.c')
-rw-r--r-- | ext/misc/vfslog.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/misc/vfslog.c b/ext/misc/vfslog.c index 7cc108330..7b2f99bc5 100644 --- a/ext/misc/vfslog.c +++ b/ext/misc/vfslog.c @@ -514,7 +514,15 @@ static int vlogFileControl(sqlite3_file *pFile, int op, void *pArg){ *(char**)pArg = sqlite3_mprintf("vlog/%z", *(char**)pArg); } tElapse = vlog_time() - tStart; - vlogLogPrint(p->pLog, tStart, tElapse, "FILECONTROL", op, -1, 0, rc); + if( op==SQLITE_FCNTL_PRAGMA ){ + const char **azArg = (const char **)pArg; + vlogLogPrint(p->pLog, tStart, tElapse, "FILECONTROL", op, -1, azArg[1], rc); + }else if( op==SQLITE_FCNTL_SIZE_HINT ){ + sqlite3_int64 sz = *(sqlite3_int64*)pArg; + vlogLogPrint(p->pLog, tStart, tElapse, "FILECONTROL", op, sz, 0, rc); + }else{ + vlogLogPrint(p->pLog, tStart, tElapse, "FILECONTROL", op, -1, 0, rc); + } return rc; } |