Reindexing shouldn't stop unexpectedly
This commit is contained in:
parent
ed0b5f54a5
commit
a46b4a4637
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue