Skip to content

Commit

Permalink
more redundant deletes
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed May 13, 2024
1 parent d6b7bba commit e79ef37
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1947,19 +1947,19 @@ private String removeDeaccessioned(Dataset dataset) {
StringBuilder result = new StringBuilder();
String deleteDeaccessionedResult = removeSolrDocFromIndex(determineDeaccessionedDatasetId(dataset));
result.append(deleteDeaccessionedResult);
List<String> docIds = findSolrDocIdsForFilesToDelete(dataset, IndexableDataset.DatasetState.DEACCESSIONED);
String deleteFilesResult = removeMultipleSolrDocs(docIds);
result.append(deleteFilesResult);
// List<String> docIds = findSolrDocIdsForFilesToDelete(dataset, IndexableDataset.DatasetState.DEACCESSIONED);
// String deleteFilesResult = removeMultipleSolrDocs(docIds);
// result.append(deleteFilesResult);
return result.toString();
}

private String removePublished(Dataset dataset) {
StringBuilder result = new StringBuilder();
String deletePublishedResult = removeSolrDocFromIndex(determinePublishedDatasetSolrDocId(dataset));
result.append(deletePublishedResult);
List<String> docIds = findSolrDocIdsForFilesToDelete(dataset, IndexableDataset.DatasetState.PUBLISHED);
String deleteFilesResult = removeMultipleSolrDocs(docIds);
result.append(deleteFilesResult);
// List<String> docIds = findSolrDocIdsForFilesToDelete(dataset, IndexableDataset.DatasetState.PUBLISHED);
// String deleteFilesResult = removeMultipleSolrDocs(docIds);
// result.append(deleteFilesResult);
return result.toString();
}

Expand Down

0 comments on commit e79ef37

Please sign in to comment.