Reindexing shouldn't stop unexpectedly

This commit is contained in:
James Agnew 2018-06-13 22:03:15 +08:00
parent ed0b5f54a5
commit a46b4a4637
2 changed files with 2 additions and 2 deletions

View File

@ -1338,7 +1338,7 @@ public abstract class BaseHapiFhirResourceDao<T extends IBaseResource> extends B
@PostConstruct @PostConstruct
public void start() { public void start() {
ourLog.info("Starting resource DAO for type: {}", getResourceName()); ourLog.debug("Starting resource DAO for type: {}", getResourceName());
} }
} }

View File

@ -257,7 +257,7 @@ public abstract class BaseHapiFhirSystemDao<T, MT> extends BaseHapiFhirDao<IBase
@Transactional(propagation = Propagation.NEVER) @Transactional(propagation = Propagation.NEVER)
public Integer performReindexingPass(final Integer theCount) { public Integer performReindexingPass(final Integer theCount) {
if (!myReindexLock.tryLock()) { if (!myReindexLock.tryLock()) {
return null; return -1;
} }
try { try {
return doPerformReindexingPass(theCount); return doPerformReindexingPass(theCount);