From 8525f4ceacf7307b8d734d3f836f067e0dd9d4bd Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Thu, 6 Oct 2011 14:26:39 -0400 Subject: [PATCH] Fixed major bug where :refresh_mode == :sync --- lib/mongo/repl_set_connection.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mongo/repl_set_connection.rb b/lib/mongo/repl_set_connection.rb index 5405c58..af3eb0e 100644 --- a/lib/mongo/repl_set_connection.rb +++ b/lib/mongo/repl_set_connection.rb @@ -454,6 +454,7 @@ module Mongo if @refresh_mode == :sync && ((Time.now - @last_refresh) > @refresh_interval) refresh + @last_refresh = Time.now end end end