Merge changes I282a8fc7,I5fceac93 into stable-2.11

* changes:
  Print proper name for project indexer tasks in show-queue command
  Print proper name for reindex after update tasks in show-queue command
This commit is contained in:
David Pursehouse 2015-06-26 05:58:54 +00:00 committed by Gerrit Code Review
commit 81e5077c55
2 changed files with 17 additions and 0 deletions

View File

@ -120,6 +120,12 @@ public class ReindexAfterUpdate implements GitReferenceUpdatedListener {
new Branch.NameKey(project, ref)));
}
}
@Override
public String toString() {
return "Get changes to reindex caused by " + event.getRefName()
+ " update of project " + event.getProjectName();
}
}
private class Index extends Task<Void> {
@ -138,5 +144,11 @@ public class ReindexAfterUpdate implements GitReferenceUpdatedListener {
indexerFactory.create(executor, indexes).index(db, c);
return null;
}
@Override
public String toString() {
return "Index change " + id.get() + " of project "
+ event.getProjectName();
}
}
}

View File

@ -269,6 +269,11 @@ public class SiteIndexer {
}
return null;
}
@Override
public String toString() {
return "Index all changes of project " + project.get();
}
};
}