Skip to content

Commit 67b53e7

Browse files
vladakVladimir Kotal
authored andcommitted
send the "indexed" message even if the project is marked as indexed
fixes #1738
1 parent 58c5ae0 commit 67b53e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/org/opensolaris/opengrok/index/IndexDatabase.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,10 @@ private int getFileCount(File sourceRoot, String dir) throws IOException {
327327
private void markProjectIndexed(Project project) throws IOException {
328328
RuntimeEnvironment env = RuntimeEnvironment.getInstance();
329329

330-
// Successfully indexed the directory. If this is a project
331-
// that has just been indexed for the first time mark it so
332-
// by sending special message to the webapp.
333-
if (project != null && !project.isIndexed()) {
330+
// Successfully indexed the project. The message is sent even if
331+
// the project's isIndexed() is true because it triggers RepositoryInfo
332+
// refresh.
333+
if (project != null) {
334334
if (env.getConfigHost() != null && env.getConfigPort() > 0) {
335335
Message m = Message.createMessage("project");
336336
m.addTag(project.getName());

0 commit comments

Comments
 (0)