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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.0-rc1
    • Affects Version/s: 2.6.0-rc0
    • Component/s: 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 );

      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.

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

              Created:
              Updated:
              Resolved: