ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/hash.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/hash.c (file contents):
Revision 1963 by michael, Fri Apr 19 19:50:27 2013 UTC vs.
Revision 1964 by michael, Wed May 8 14:27:02 2013 UTC

# Line 69 | Line 69 | static struct UserHost *userhostTable[HA
69   void
70   hash_init(void)
71   {
72 <  /* Default the userhost/namehost sizes to CLIENT_HEAP_SIZE for now,
73 <   * should be a good close approximation anyway
74 <   * - Dianora
75 <   */
76 <  userhost_pool = mp_pool_new(sizeof(struct UserHost), MP_CHUNK_SIZE_CLIENT);
77 <  namehost_pool = mp_pool_new(sizeof(struct NameHost), MP_CHUNK_SIZE_CLIENT);
72 >  userhost_pool = mp_pool_new(sizeof(struct UserHost), MP_CHUNK_SIZE_USERHOST);
73 >  namehost_pool = mp_pool_new(sizeof(struct NameHost), MP_CHUNK_SIZE_NAMEHOST);
74  
75    hashf_xor_key = genrand_int32() % 256;  /* better than nothing --adx */
76   }

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)