# File lib/mongo/util/support.rb, line 79
    def secondary_ok?(selector)
      command = selector.keys.first.to_s.downcase

      if command == 'mapreduce'
        out = selector.select { |k, v| k.to_s.downcase == 'out' }.first.last
        # mongo looks at the first key in the out object, and doesn't
        # look at the value
        out.is_a?(Hash) && out.keys.first.to_s.downcase == 'inline' ? true : false
      else
        SECONDARY_OK_COMMANDS.member?(command)
      end
    end