mirror of https://github.com/apache/lucene.git
SOLR-11052: Remove unnecessary Long-to-Integer and back casts in ReplicationHandler.
(Ramsey Haddad via Christine Poerschke)
This commit is contained in:
parent
b17ec1445d
commit
abdb7292db
|
@ -88,6 +88,10 @@ Other Changes
|
||||||
* SOLR-10964: Reduce SolrIndexSearcher casting in LTRRescorer. (Christine Poerschke)
|
* SOLR-10964: Reduce SolrIndexSearcher casting in LTRRescorer. (Christine Poerschke)
|
||||||
|
|
||||||
* SOLR-11075: Refactor handling of params in CloudSolrStream and FacetStream (Erick Erickson)
|
* SOLR-11075: Refactor handling of params in CloudSolrStream and FacetStream (Erick Erickson)
|
||||||
|
|
||||||
|
* SOLR-11052: Remove unnecessary Long-to-Integer and back casts in ReplicationHandler.
|
||||||
|
(Ramsey Haddad via Christine Poerschke)
|
||||||
|
|
||||||
================== 7.0.0 ==================
|
================== 7.0.0 ==================
|
||||||
|
|
||||||
Versions of Major Components
|
Versions of Major Components
|
||||||
|
|
|
@ -205,7 +205,7 @@ public class ReplicationHandler extends RequestHandlerBase implements SolrCoreAw
|
||||||
|
|
||||||
private final Map<String, FileInfo> confFileInfoCache = new HashMap<>();
|
private final Map<String, FileInfo> confFileInfoCache = new HashMap<>();
|
||||||
|
|
||||||
private Integer reserveCommitDuration = readIntervalMs("00:00:10");
|
private Long reserveCommitDuration = readIntervalMs("00:00:10");
|
||||||
|
|
||||||
volatile IndexCommit indexCommitPoint;
|
volatile IndexCommit indexCommitPoint;
|
||||||
|
|
||||||
|
@ -1695,8 +1695,8 @@ public class ReplicationHandler extends RequestHandlerBase implements SolrCoreAw
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Integer readIntervalMs(String interval) {
|
private static Long readIntervalMs(String interval) {
|
||||||
return (int) TimeUnit.MILLISECONDS.convert(readIntervalNs(interval), TimeUnit.NANOSECONDS);
|
return TimeUnit.MILLISECONDS.convert(readIntervalNs(interval), TimeUnit.NANOSECONDS);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Long readIntervalNs(String interval) {
|
private static Long readIntervalNs(String interval) {
|
||||||
|
|
Loading…
Reference in New Issue