]> source.dussan.org Git - jgit.git/commit
Don't close ObjectDatabase after parsing pack 23/3923/1
authorShawn O. Pearce <spearce@spearce.org>
Fri, 15 Jul 2011 23:28:26 +0000 (16:28 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 27 Jul 2011 17:00:41 +0000 (10:00 -0700)
commitbfa62d88d47157b72abaf2f1a8fb8af07da75050
treecf6936433725e6f1e211f692d87325734619731e
parente15037b3c7aa7f72313f19086bce12c54617c1bb
Don't close ObjectDatabase after parsing pack

The cached object databases should not require a close to release
their cached resources. Most object databases just return their
own reference for newCachedDatabase(), so a close() here kills
the real database's internal caches, and possibly underlying files,
resulting in poor performance for the callers of PackParser like
ReceivePack or FetchProcess trying to then go look up objects that
were just parsed, or that current references point to.

Change-Id: Ia4a239093866e5b9faf82744f729fb73f4373f1a
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java