Skip to content

Commit

Permalink
replaced Vector by LinkedList ( just to avoid synchronized methods )
Browse files Browse the repository at this point in the history
  • Loading branch information
Chr1st0ph authored and erh committed Oct 25, 2010
1 parent ce25551 commit 147d2f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/com/mongodb/DBApiLayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ void _cleanCursors()
return;

l = _deadCursorIds;
_deadCursorIds = new Vector<Long>();
_deadCursorIds = new LinkedList<Long>(); // replaced Vector by LinkedList because Vector is synchronized ( which should not be necessary in our current use cases )
}

Bytes.LOGGER.info( "going to kill cursors : " + l.size() );
Expand Down

0 comments on commit 147d2f4

Please sign in to comment.