minor: ensure_index fix for 1.9.1
This commit is contained in:
parent
9a8d83ad24
commit
13a27771b0
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user