- testbound can give config file and commandline options from the
replay file to unbound.
- created test that checks if items drop out of the cache.
+ - added word 'partitioned hash table' to documentation on slab hash.
+ A slab hash is a partitioned hash table.
26 March 2007: Wouter
- config settings for slab hash message cache.
char line[MAX_LINE_LEN];
char* parse;
FILE* cfg;
- sprintf(configfile, "/tmp/testbound_cfg_%u.tmp", (unsigned)getpid());
+ snprintf(configfile, MAX_LINE_LEN, "/tmp/testbound_cfg_%u.tmp",
+ (unsigned)getpid());
add_opts("-c", pass_argc, pass_argv);
add_opts(configfile, pass_argc, pass_argv);
cfg = fopen(configfile, "w");
int init_optind = optind;
char* init_optarg = optarg;
struct replay_scenario* scen = NULL;
- char cfgfile[128];
+ char cfgfile[MAX_LINE_LEN];
log_init(NULL);
log_info("Start of %s testbound program.", PACKAGE_STRING);
* \file
*
* Implementation of hash table that consists of smaller hash tables.
+ * This results in a partitioned lruhash table.
* It cannot grow, but that gives it the ability to have multiple
* locks. Also this means there are multiple LRU lists.
*/
/**
* Hash table formed from several smaller ones.
+ * This results in a partitioned lruhash table.
* None of the data inside the slabhash may be altered.
* Therefore, no locks are needed to access the structure.
*/