mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
Fix for ACE-3392 Solr 4- java.lang.ArithmeticException: / by zero during Tracking
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@89741 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
+12
@@ -814,6 +814,10 @@ public class TrackerStats
|
||||
*/
|
||||
public void addElapsedNodeTime(int docCount, long time)
|
||||
{
|
||||
if(docCount < 1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
IncrementalStats stats = elapsedNodeTimes.get(Thread.currentThread().getName());
|
||||
if (stats == null)
|
||||
{
|
||||
@@ -834,6 +838,10 @@ public class TrackerStats
|
||||
*/
|
||||
public void addElapsedAclTime(int docCount, long time)
|
||||
{
|
||||
if(docCount < 1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
IncrementalStats stats = elapsedAclTimes.get(Thread.currentThread().getName());
|
||||
if (stats == null)
|
||||
{
|
||||
@@ -854,6 +862,10 @@ public class TrackerStats
|
||||
*/
|
||||
public void addElapsedContentTime(int docCount, long time)
|
||||
{
|
||||
if(docCount < 1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
IncrementalStats stats = elapsedContentTimes.get(Thread.currentThread().getName());
|
||||
if (stats == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user