Skip to content

Commit

Permalink
Undo last commit, driver 2.5.0 isn't released yet
Browse files Browse the repository at this point in the history
  • Loading branch information
estolfo committed Aug 11, 2017
1 parent f03e52c commit ac8b75c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongoid/query_cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def each
super
else
unless cursor = cached_cursor
server = server_selector.select_server(cluster)
server = read.select_server(cluster)
cursor = CachedCursor.new(view, send_initial_query(server), server)
QueryCache.cache_table[cache_key] = cursor
end
Expand Down

0 comments on commit ac8b75c

Please sign in to comment.