1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Revise the implementation of OP_Once so that it is smaller, faster, and uses

less memory.  This also fixes an obscure bug introduced 3 days ago by check-in
[5990a1bdb4a073].

FossilOrigin-Name: 6bf5ba10d28f1b0a32aa9a560ae3143a1235eadb
This commit is contained in:
drh
2016-09-18 16:08:10 +00:00
parent 598f7c59e1
commit 9e5eb9c8cc
12 changed files with 53 additions and 56 deletions

View File

@@ -3784,6 +3784,15 @@ int sqlite3_test_control(int op, ...){
break;
}
/* Set the threshold at which OP_Once counters reset back to zero.
** By default this is 0xfffffffe (over 2 billion), but that value is
** too big to test in a reasonable amount of time, so this control is
** provided to set a small and easily reachable reset value.
*/
case SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD: {
sqlite3GlobalConfig.iOnceResetThreshold = va_arg(ap, int);
break;
}
/* sqlite3_test_control(SQLITE_TESTCTRL_VDBE_COVERAGE, xCallback, ptr);
**