ignite-5562: assert statements were changed to the 'if' blocks
@@ -433,7 +433,8 @@ public class TcpDiscoveryStatistics {
* @param initTime Time socket was initialized in.
*/
public synchronized void onServerSocketInitialized(long initTime) {
- assert initTime >= 0;
+ if (initTime < 0)
+ initTime = 0;
if (maxSrvSockInitTime < initTime)
maxSrvSockInitTime = initTime;
@@ -445,7 +446,8 @@ public class TcpDiscoveryStatistics {
* @param initTime Time socket was initialized in.
*/
public synchronized void onClientSocketInitialized(long initTime) {
- assert initTime >= 0;
+ if (initTime < 0)
+ initTime = 0;
clientSockCreatedCnt++;
