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>() { if (count > 0) {
@Override long total = tt.execute(new TransactionCallback<Long>() {
public Long doInTransaction(TransactionStatus theStatus) { @Override
return mySearchDao.count(); public Long doInTransaction(TransactionStatus theStatus) {
} return mySearchDao.count();
}); }
});
ourLog.info("Deleted {} searches, {} remaining", count, total); ourLog.info("Deleted {} searches, {} remaining", count, total);
}
} }

View File

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