Skip to content

Commit a155cd9

Browse files
author
Vladimir Kotal
committed
mark project object indexed before making API call
fixes #2412
1 parent df8ae9f commit a155cd9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/index/IndexDatabase.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,10 @@ private void markProjectIndexed(Project project) {
369369
// the project's isIndexed() is true because it triggers RepositoryInfo
370370
// refresh.
371371
if (project != null) {
372+
// Also need to store the correct value in configuration
373+
// when indexer writes it to a file.
374+
project.setIndexed(true);
375+
372376
if (env.getConfigURI() != null) {
373377
Response r = ClientBuilder.newClient()
374378
.target(env.getConfigURI())
@@ -385,10 +389,6 @@ private void markProjectIndexed(Project project) {
385389
new Object[] {project, r});
386390
}
387391
}
388-
389-
// Also need to store the correct value in configuration
390-
// when indexer writes it to a file.
391-
project.setIndexed(true);
392392
}
393393
}
394394

0 commit comments

Comments
 (0)