Paul Jarc | 19 Dec 2002 17:53
Picon

Re: Invoking cdbdump from a bash script, hanging

"Gerrit Pape" <pape <at> smarden.org> wrote:
> On Wed, Dec 18, 2002 at 09:22:54PM -0800, Chris Wilkes wrote:
>> A typical transaction would be asking if an MD5 entry is in there.
>> A non-typical one would be changing an entry's value from 0 to 1 or
>> vice versa.
>
> If you don't change the length of a value, you can edit the value in the
> binary cdb directly, without recreating the hashes.

Multi-byte writes may not be atomic (AFAIK), so another requirement is
that the hash values should be only one byte.  (In this case, they
are.)

paul


Gmane