You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by "dschneider-pivotal (GitHub)" <gi...@apache.org> on 2019/02/13 17:06:48 UTC

[GitHub] [geode] dschneider-pivotal commented on pull request #3176: GEODE-6379: track departed members to avoid processing in-flight lock request

change this code to only call System.currentTimeMillis once.
How about using a LinkedHashMap? I think you could then get rid of the membersDepartedTimeKeptSize. The order of iteration should be from the first one added to the last. So that would always be the oldest to the most recent. As soon as you find and entry that is not expired you can quit the iteration.

[ Full content available at: https://github.com/apache/geode/pull/3176 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org