]> mj.ucw.cz Git - libucw.git/commit
Rewritten shake down of bucket file.
authorMartin Mares <mj@ucw.cz>
Sun, 11 Jan 2004 19:03:21 +0000 (19:03 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 11 Jan 2004 19:03:21 +0000 (19:03 +0000)
commit43b1b86e0fb28a3b383df336acfadbb1baaa87aa
tree18d074d21f8f83e0aa25080463b94f0da8d2c301
parentdfed20efc04e2374bd39512f5e87ae6b8a5a7ffc
Rewritten shake down of bucket file.

  o  Replaced read and write buffers by a single shared buffer.
     This should be somewhat faster (with the same size of memory invested
     to buffers).
  o  If ShakeSecurity is set to 2, shaking down should be reliable under
     all circumstances, including server reboots and broken bucket files.
     Buckettool -F still needs to be run after a failed shakedown and
     oid's need to be synchronized with the outside world, but no buckets
     will be lost (only some of them may be duplicated).
  o  The callback function (`the kibitz') is now allowed not only to decide
     which buckets will be kept, but also to alter contents of the buckets
     provided that it won't enlarge the bucket.

I tried to be very careful and tested the new routine thoroughly, but since
it's a pretty critical place, I would be very happy if somebody checks it
independently.
lib/bucket.c