Remove an unneeded log entry

This commit is contained in:
James Agnew 2017-07-20 15:23:33 -04:00
parent 82e2aadf86
commit 0f50eae640
2 changed files with 10 additions and 9 deletions

View File

@ -81,14 +81,15 @@ public class StaleSearchDeletingSvcImpl implements IStaleSearchDeletingSvc {
}
});
long total = tt.execute(new TransactionCallback<Long>() {
@Override
public Long doInTransaction(TransactionStatus theStatus) {
return mySearchDao.count();
}
});
ourLog.info("Deleted {} searches, {} remaining", count, total);
if (count > 0) {
long total = tt.execute(new TransactionCallback<Long>() {
@Override
public Long doInTransaction(TransactionStatus theStatus) {
return mySearchDao.count();
}
});
ourLog.info("Deleted {} searches, {} remaining", count, total);
}
}

View File

@ -440,7 +440,7 @@ public abstract class BaseHapiTerminologySvc implements IHapiTerminologySvc {
}
@Scheduled(fixedRate = 5000)
@Transactional(propagation = Propagation.NOT_SUPPORTED)
@Transactional(propagation = Propagation.NEVER)
@Override
public synchronized void saveDeferred() {
if (!myProcessDeferred) {