Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-576

Syntax error: ensure_index documentation

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 1.8.5
    • Affects Version/s: 1.8.4
    • Component/s: Docs
    • None
    • Environment:
      n/a

      All the code samples in ensure_index http://api.mongodb.org/ruby/current/Mongo/Collection.html#ensure_index-instance_method are missing a closing bracket.

      {{Time t: @posts.ensure_index([['subject', Mongo::ASCENDING]) – calls create_index and
      sets the 5 minute cache
      Time t+2min : @posts.ensure_index([['subject', Mongo::ASCENDING]) – doesn't do anything
      Time t+3min : @posts.ensure_index([['something_else', Mongo::ASCENDING]) – calls create_index
      and sets 5 minute cache
      Time t+10min : @posts.ensure_index([['subject', Mongo::ASCENDING]) – calls create_index and
      resets the 5 minute counter}}

            Assignee:
            brandon.black@10gen.com Brandon Black
            Reporter:
            crudson Doug Hudson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: