mirror of https://github.com/apache/lucene.git
logging: fix detection of updates since startup
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1293866 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1c84da1064
commit
85013ffd31
|
@ -229,10 +229,11 @@ public class RecoveryStrategy extends Thread implements SafeStopThread {
|
|||
if (startingRecentVersions.get(oldIdx) == firstStartingVersion) break;
|
||||
}
|
||||
|
||||
if (oldIdx < startingRecentVersions.size()) {
|
||||
log.info("####### Found new versions added after startup: num=" + (startingRecentVersions.size()-oldIdx));
|
||||
if (oldIdx > 0) {
|
||||
log.info("####### Found new versions added after startup: num=" + oldIdx);
|
||||
}
|
||||
|
||||
// TODO: only log at debug level in the future (or move to oldIdx > 0 block)
|
||||
log.info("###### startupVersions=" + reallyStartingVersions);
|
||||
log.info("###### currentVersions=" + startingRecentVersions);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue