Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12915

update must keep track of all modified docs, even if they don't move

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.6.0-rc0
    • 2.6.0-rc1
    • Write Ops
    • None
    • ALL
    • Hide

      t.drop();
       
      t.save( { x : 1 } );
      t.save( { x : 2 } );
      t.save( { x : 3 } );
       
      t.ensureIndex( { x : 1 } );
      t.update( { x : { $gt : 0 } } , { $inc : { x : 5 } } , false , true );

      Show
      t.drop();   t.save( { x : 1 } ); t.save( { x : 2 } ); t.save( { x : 3 } );   t.ensureIndex( { x : 1 } ); t.update( { x : { $gt : 0 } } , { $inc : { x : 5 } } , false , true );

    Description

      Otherwise we'll continually update the same document. Our jstest for this didn't catch the issue because it used to use a collection scan for the underlying query execution.

      Attachments

        Activity

          People

            hari.khalsa@10gen.com hari.khalsa@10gen.com
            hari.khalsa@10gen.com hari.khalsa@10gen.com
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: