DBApiLayer.MyCollection._cleanCursors(): reduced synchronization need by using double check pattern #11

Closed
wants to merge 9 commits into
from

Conversation

Projects
None yet
2 participants
@Chr1st0ph

please also have a look at my adoptions in ReplicaSetStatus ( removing offline nodes on the fly )

Chr1st0ph added some commits Oct 18, 2010

Chr1st0ph
+ replaced Collections.synchronizedList( new ArrayList<Node>() ) by C…
…opyOnWriteArrayList ( in order to support removal of nodes dynamically; admins might change the replica set config )

+ equals, hashCode for class Node
+ adopted method close: set _close to true
- Random ( should not be necessary since we iterate all nodes anyway )
@trishagee

This comment has been minimized.

Show comment Hide comment
@trishagee

trishagee Jul 2, 2013

Contributor

Closing old pull requests. If the requirement is still valid, please feel free to submit a new pull request against the current driver code.

Contributor

trishagee commented Jul 2, 2013

Closing old pull requests. If the requirement is still valid, please feel free to submit a new pull request against the current driver code.

@trishagee trishagee closed this Jul 2, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment