Fix reindex broken by removing entries from multimap

Change I01f94ec8dea2cad352cc4766eb932d380f7bb065 broke the
reindexer somehow by removing entries from the list in the
mutlimap.  Make a copy of the list before removing entries from it.

Change-Id: I7add5639f06c7607b00f99f2873f70d53c7df33b
This commit is contained in:
Martin Fick
2013-06-27 18:40:42 -06:00
parent 0559859e68
commit a0e027a9d5

View File

@@ -378,7 +378,7 @@ public class Reindex extends SiteProgram {
private void getPathsAndIndex(RevCommit bCommit) throws Exception {
RevTree bTree = bCommit.getTree();
List<ChangeData> cds = byId.get(bCommit);
List<ChangeData> cds = Lists.newArrayList(byId.get(bCommit));
try {
RevTree aTree = aFor(bCommit, walk);
if (aTree == null) {