handle concurrent pruning of packed objects
authorJeff King <peff@peff.net>
Fri, 2 Jun 2006 15:32:23 +0000 (11:32 -0400)
committerJunio C Hamano <junkio@cox.net>
Fri, 2 Jun 2006 18:09:38 +0000 (11:09 -0700)
commit637cdd9d1d997fca34a1fc668fed1311e30fe95f
treeed8d8b1fcbf9a5b9f2bbbb53f007618d32808c41
parent31262627109476c529418132e0820687003fb1fe
handle concurrent pruning of packed objects

This patch causes read_sha1_file and sha1_object_info to re-examine the
list of packs if an object cannot be found. It works by re-running
prepare_packed_git() after an object fails to be found.

It does not attempt to clean up the old pack list. Old packs which are in
use can continue to be used (until unused by lru selection).  New packs
are placed at the front of the list and will thus be examined before old
packs.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c