aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/vfslog.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-10-18 14:37:26 +0000
committerdrh <drh@noemail.net>2013-10-18 14:37:26 +0000
commit2eebbf699efde003afdd0e87ae330a8873350b7a (patch)
treeb90eeab8f310a29a820d9f4d2198b3914b66bf95 /ext/misc/vfslog.c
parentf05fba3afa9d0230b0fe84b10fed812559927359 (diff)
downloadsqlite-2eebbf699efde003afdd0e87ae330a8873350b7a.tar.gz
sqlite-2eebbf699efde003afdd0e87ae330a8873350b7a.zip
In the vfslog extension for FILECONTROL records, show the pragma name for
SQLITE_FCNTL_PRAGMAs and the requested size for SQLITE_FCNTL_SIZE_HINT. FossilOrigin-Name: f062969548da26850ceeb48d4283f6567f828887
Diffstat (limited to 'ext/misc/vfslog.c')
-rw-r--r--ext/misc/vfslog.c10
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;
}