Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] question on pack files

On Thu, Jan 13, 2011 at 12:07, Dmitry Neverov <dmitry.neverov@xxxxxxxxx> wrote:
> Shouldn't we in this case catch Throwable, not just IOException inside
> the renameAndOpenPack()
> and remove final .pack and .idx if any error occurs?

I'm not sure about that one.  Maybe you are right.

I was trying to avoid deleting an otherwise valid pack, because if the
remote side doesn't change anything before our next fetch attempt, and
if we can open that pack without running out of memory, we'll be able
to avoid network transfer altogether and just use what we already have
local.

-- 
Shawn.


Back to the top