1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Add the SQLITE_CONFIG_PCACHE_HDRSZ option for sqlite3_config().

FossilOrigin-Name: 6eb03e62a34e8e0964175283587247b0212db604
This commit is contained in:
drh
2014-11-04 12:11:23 +00:00
parent d84bf205c3
commit def6889d21
9 changed files with 68 additions and 25 deletions

View File

@@ -401,6 +401,15 @@ int sqlite3_config(int op, ...){
sqlite3GlobalConfig.nPage = va_arg(ap, int);
break;
}
case SQLITE_CONFIG_PCACHE_HDRSZ: {
/* Return the total size of all headers added to each page
** of the page cache */
*va_arg(ap, int*) =
sqlite3HeaderSizeBtree() +
sqlite3HeaderSizePcache() +
sqlite3HeaderSizePcache1();
break;
}
case SQLITE_CONFIG_PCACHE: {
/* no-op */