]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Nicer words for slab hash.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 27 Mar 2007 10:01:39 +0000 (10:01 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 27 Mar 2007 10:01:39 +0000 (10:01 +0000)
git-svn-id: file:///svn/unbound/trunk@200 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
testcode/testbound.c
util/storage/slabhash.c
util/storage/slabhash.h

index 393fd2bcd15b67b2ee1021181c504ac1f1503370..11d27cb1596994e1e9d1a601ece58fc453e1dbb3 100644 (file)
@@ -3,6 +3,8 @@
        - 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.
index 67448f8e5678119b5ec4cfeda14603150cde0bb5..64cad16198260bfe0f8419ce6a3ecec4721ef4f0 100644 (file)
@@ -125,7 +125,8 @@ setup_config(FILE* in, char* configfile, int* lineno,
        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");
@@ -194,7 +195,7 @@ main(int argc, char* argv[])
        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);
index 929e5e170837f62b352cb779c3e7de490735e8b7..e0d917c84bb53dac0c8cddba17a8c19f16137610 100644 (file)
@@ -37,6 +37,7 @@
  * \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.
  */
index 7fde7caf45b30db256a822bceaad8a7b70a5b058..0ceee926463fdf23f5c170a578c2f1071361376d 100644 (file)
@@ -47,6 +47,7 @@
 
 /**
  * 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.
  */