[SERVER-3422] update_yield1 / atomic updates failure Created: 13/Jul/11  Updated: 12/Jul/16  Resolved: 29/Aug/11

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 1.9.2

Type: Bug Priority: Major - P3
Reporter: Aaron Staple Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

It looks like this code in update.cpp does not respect the atomic option:

// *****************
if ( cc.get() == 0 )

{ shared_ptr< Cursor > cPtr = c; cc.reset( new ClientCursor( QueryOption_NoCursorTimeout , cPtr , ns ) ); }

if ( ! cc->yieldSometimes( ClientCursor::WillNeed ) )

{ cc.release(); break; }

if ( !c->ok() )

{ break; }

// *****************

And I'm seeing update_yield1 fail on my machine. (This test only runs weekly in bb.)



 Comments   
Comment by auto [ 31/Jul/11 ]

Author:

{u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}

Message: SERVER-3422 honor atomic mode in update 'WillNeed' yielding
Branch: master
https://github.com/mongodb/mongo/commit/7a9337b122d569b467a74ef16b5ef8b27ccf69e4

Generated at Thu Feb 08 03:03:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.