flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-8198) Useless check against -1 in LimitedConnectionsFileSystem#fromConfig
Date Tue, 05 Dec 2017 01:07:00 GMT
Ted Yu created FLINK-8198:
-----------------------------

             Summary: Useless check against -1 in LimitedConnectionsFileSystem#fromConfig
                 Key: FLINK-8198
                 URL: https://issues.apache.org/jira/browse/FLINK-8198
             Project: Flink
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


{code}
        return new ConnectionLimitingSettings(
            totalLimit == -1 ? 0 : totalLimit,
            limitIn == -1 ? 0 : limitIn,
            limitOut == -1 ? 0 : limitOut,
            openTimeout,
{code}
If any of the 3 variables is negative, control would have returned in the if block above.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message