Skip to content

Commit

Permalink
Nearline storage #590
Browse files Browse the repository at this point in the history
  • Loading branch information
gunterze committed May 15, 2018
1 parent 95bdb87 commit a9c2715
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,4 +433,10 @@ private void calculateMissingSeriesQueryAttributes(Long seriesPk) {
queryService.calculateSeriesQueryAttributes(seriesPk, arcDev.getQueryRetrieveView(viewID));
}
}

public void updateStudyAccessTime(Long studyPk) {
em.createNamedQuery(Study.UPDATE_ACCESS_TIME)
.setParameter(1, studyPk)
.executeUpdate();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,7 @@ private List<Long> findStudiesForDeletion(StorageDescriptor desc, int fetchSize)
if (notStoredOnBoth > 0) {
LOG.warn("{} of instances of Study[pk={}] on {} not stored on Storage[id={}] - defer deletion objects",
notStoredOnBoth, studyPk, desc, exportStorageID);
em.createNamedQuery(Study.UPDATE_ACCESS_TIME)
.setParameter(1, studyPk)
.executeUpdate();
ejb.updateStudyAccessTime(studyPk);
iter.remove();
}
}
Expand Down

0 comments on commit a9c2715

Please sign in to comment.