Nicolas Pitre <nico@cam.org> wrote:Yea, that's a really quick repack. :-) Plus its actually something that can be easily halted in the middle and resumed later. Just need to save the list of packfiles you are concatenating so you can pick up later when you get more time. There shouldn't be a problem with having duplicates in the packfile. You can do one of two things: a) Omit the duplicates from the .idx when you merge the .idx tables together to produce the new one. Just take the object with the earliest offset. b) Leave the duplicates in the final .idx. In this case the binary search may pick any of them, but it wouldn't matter which it finds. About the only process that might care about duplicates would be index-pack. I don't think it makes sense to run index-pack on a packfile you already have a .idx for. I don't think it would have a problem with the duplicate SHA-1s either, but it wouldn't be hard to make it do something reasonable when it finds them. Not might, *must*. If you delete the old ones before the new ones are ready then readers can run into problems trying to access the objects. We've spent some effort trying to make these sorts of operations safe. No sense in destroying that by getting the order wrong here. :) -- Shawn. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Zhang, Yanmin | AIM7 40% regression with 2.6.26-rc1 |
| Con Kolivas | [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2 |
| Nick Piggin | [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear) |
| Andrew Morton | -mm merge plans for 2.6.23 |
git: | |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
| Natalie Protasevich | [BUG] New Kernel Bugs |
