Permalink
Browse files

Only reset the counter if we were shufflin'

  • Loading branch information...
1 parent 0b5394a commit 5da8546e7b0a8f7d052065dae6cf0273248c1129 @eric eric committed Oct 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/kestrel/client.rb
View
@@ -127,7 +127,7 @@ def get(key, opts = {})
# nil result without :close and :abort, force next get to jump from
# current server
- if !val && !opts[:close] && !opts[:abort]
+ if !val && @shuffle && !opts[:close] && !opts[:abort]
@counter = @gets_per_server
end

0 comments on commit 5da8546

Please sign in to comment.