1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Add the SQLITE_TESTCTRL_PGHDRSZ verb for sqlite3_test_control() used to get

the size of pcache headers for testing purposes.

FossilOrigin-Name: 5d694f04fecf47ca325e108d463c24f42def55d5
This commit is contained in:
drh
2010-06-10 14:07:40 +00:00
parent 007d6c3a36
commit 23e35723a7
4 changed files with 22 additions and 12 deletions

View File

@@ -2491,6 +2491,15 @@ int sqlite3_test_control(int op, ...){
}
#endif
/* sqlite3_test_control(SQLITE_TESTCTRL_PGHDRSZ)
**
** Return the size of a pcache header in bytes.
*/
case SQLITE_TESTCTRL_PGHDRSZ: {
rc = sizeof(PgHdr);
break;
}
}
va_end(ap);
#endif /* SQLITE_OMIT_BUILTIN_TEST */