minor: ensure_index fix for 1.9.1

This commit is contained in:
Kyle Banker 2010-12-02 11:24:21 -05:00
parent 9a8d83ad24
commit 13a27771b0

View File

@ -450,7 +450,7 @@ module Mongo
generate_indexes(valid, name, opts) if valid.any?
# Reset the cache here in case there are any errors inserting. Best to be safe.
name.each {|n| @cache[n] = now + @cache_time}
@cache[name] = now + @cache_time
name
end