🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #18303

Re: INN history lookup cache (patch)

#18303
From: Jeff Garzik
Date: Thu, 05 Jun 1997 00:00
90 lines
2683 bytes
This is a multi-part message in MIME format.

--------------77717925422134E07AF2910D
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

The history cache patch needs this patch to rename the DBZ hash
function, if you haven't already applied it.
-- 
Jeff Garzik
News Administrator, Spinne, Inc.
http://www.spinne.com/usenet/

--------------77717925422134E07AF2910D
Content-Type: text/plain; charset=us-ascii; name="dbz-hash-rename.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="dbz-hash-rename.patch"

diff --context -r --ignore-space-change ../inn-1.5.1/dbz/dbz.c dbz/dbz.c
*** ../inn-1.5.1/dbz/dbz.c	Tue Dec 17 09:40:40 1996
--- dbz/dbz.c	Mon Jun  2 05:24:59 1997
***************
*** 355,361 ****
  extern void CloseOnExec();
  
  /* misc. forwards */
- static long hash();
  static void crcinit();
  static char *cipoint();
  static char *mapcase();
--- 355,360 ----
***************
*** 1426,1432 ****
  {
  	register long h;
  
! 	h = hash(kp->dptr, kp->dsize);
  	if (osp != FRESH && osp->hash == h) {
  		if (sp != osp)
  			*sp = *osp;
--- 1425,1431 ----
  {
  	register long h;
  
! 	h = dbzhash(kp->dptr, kp->dsize);
  	if (osp != FRESH && osp->hash == h) {
  		if (sp != osp)
  			*sp = *osp;
***************
*** 1716,1725 ****
  }
  
  /*
!  - hash - Honeyman's nice hashing function
   */
! static long
! hash(name, size)
  register char *name;
  register int size;
  {
--- 1715,1724 ----
  }
  
  /*
!  - dbzhash - Honeyman's nice hashing function
   */
! long
! dbzhash(name, size)
  register char *name;
  register int size;
  {
diff --context -r --ignore-space-change ../inn-1.5.1/dbz/dbz.h dbz/dbz.h
*** ../inn-1.5.1/dbz/dbz.h	Tue Dec 17 09:40:40 1996
--- dbz/dbz.h	Mon Jun  2 05:24:59 1997
***************
*** 24,29 ****
--- 24,30 ----
  extern int dbzcancel();
  extern int dbzdebug();
  extern int dbzwritethrough();
+ extern long dbzhash();
  
  /*
   * In principle we could handle unlimited-length keys by operating a chunk

--------------77717925422134E07AF2910D--


Technical Details
Message-ID: <33964DFD.75484E9F@spinne.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <33963E5D.25DB7FE6@spinne.com>

Show Full Headers
Complete Article Headers
Message-ID: <33964DFD.75484E9F@spinne.com>
Subject: Re: INN history lookup cache (patch)
Date: Thu, 05 Jun 1997 00:00:00 +0000
From: Jeff Garzik <jeff.garzik@spinne.com>
References: <33963E5D.25DB7FE6@spinne.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 246236228
Organization: Spinne http://spinne.com
Newsgroups: news.software.nntp