Skip to content

Commit

Permalink
Merge pull request #539 from the-qa-company/GH-537-add-name-other-cmd
Browse files Browse the repository at this point in the history
GH-537 add name other cmd
  • Loading branch information
ate47 authored Dec 3, 2024
2 parents a1b969c + 0b2ba2d commit 881bed7
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,11 @@ public void reindexLuceneSails() throws SailException {
NotifyingSail oldSail = sail.getBaseSail();
try {
sail.setBaseSail(source);
String indexId = sail.getParameter(LuceneSail.INDEX_ID);
if (indexId == null || indexId.isEmpty()) {
indexId = "no id";
}
logger.info("Reindexing sail: {}", indexId);
sail.reindex();
} finally {
sail.setBaseSail(oldSail);
Expand Down Expand Up @@ -257,7 +262,7 @@ public void reindexLuceneSail(String index) throws SailException {
if (indexId == null || indexId.isEmpty()) {
indexId = "no id";
}
logger.info("Reindexing sail: " + indexId);
logger.info("Reindexing sail: {}", indexId);
sail.reindex();
} finally {
sail.setBaseSail(oldSail);
Expand Down

0 comments on commit 881bed7

Please sign in to comment.