This is a discussion on Re: Two patches for lib/libc/db/hash/hash.c within the mailing.openbsd.tech forums, part of the OpenBSD category; --> In message <20080406082118.GA19070@roppongi.boxsoft.com> so spake patrick keshishian (sidster): > Also, hashp->cndx is decremented (adjusted) during deletion of > the ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| In message <20080406082118.GA19070@roppongi.boxsoft.com> so spake patrick keshishian (sidster): > Also, hashp->cndx is decremented (adjusted) during deletion of > the key/data pair if hashp->cndx is pointing to the entry being > deleted. The side-effect of not doing this is entries are > skipped due to the way __delpair "shuffles" keys. Looks reasonable, though I wonder if it would not be better to do the cndx fixup inside __delpair() for the shuffle case. - todd |
| Thread Tools | |
| Display Modes | |
|
|