aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <>2021-06-04 13:40:26 +0000
committerdrh <>2021-06-04 13:40:26 +0000
commit2d26cfcc4adda9d60ccc07488d1c59f1d04e77e7 (patch)
tree77c80dc9c4c4aedef11206e1ecb098480489b2eb /src/sqliteInt.h
parentf3c1256a4d339c6c53f0442aa8306e2b3e72aefb (diff)
downloadsqlite-2d26cfcc4adda9d60ccc07488d1c59f1d04e77e7.tar.gz
sqlite-2d26cfcc4adda9d60ccc07488d1c59f1d04e77e7.zip
Revamp SQLITE_TESTCTRL_TUNE to provide visibility of current turning
parameter values. FossilOrigin-Name: 677e645e69e1f06487c26da6671fc03f0fb89a0f8e0d35712e6bdcf7279bdfc4
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 112168ed8..806a1a339 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -3747,10 +3747,12 @@ typedef struct {
** optimial values for parameters in the query planner. The should not
** be used on trunk check-ins. They are a temporary mechanism available
** for transient development builds only.
+**
+** Tuning parameters are numbered starting with 1.
*/
#define SQLITE_NTUNE 6 /* Should be zero for all trunk check-ins */
#ifdef SQLITE_DEBUG
-# define Tuning(X) (sqlite3Config.aTune[X])
+# define Tuning(X) (sqlite3Config.aTune[(X)-1])
#else
# define Tuning(X) 0
#endif