Clear the reverse index when closing a PackFile
commit44035400f543476c479d276b23156dcf83a4951d
authorShawn O. Pearce <spearce@spearce.org>
Tue, 21 Apr 2009 01:21:06 +0000 (20 18:21 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 23 Apr 2009 22:25:57 +0000 (24 00:25 +0200)
tree1f967e1ed843369492940017614d2e475ca56516
parent16330bd2d0ceff3a023c7d7d9f25d8d125db06b9
Clear the reverse index when closing a PackFile

We clear the forward index (ObjectId -> offset) when we close the pack,
so we might as well clear the reverse index (offset -> ObjectId).

The reverse index is protected by the lock on "this", just like the
forward index is.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/lib/PackFile.java