[SERVER-459] Find and Modify command Created: 04/Dec/09  Updated: 06/Dec/23  Resolved: 30/Dec/09

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

Type: New Feature Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:

 Description   

It would be nice to have an atomic modify-and-return feature that could do either an update or a remove. This could be used to support queue-like features by either marking jobs as 'in-progress' or simply removing them.

For maximum flexibility we should be able return either the original or the updated version based on an optional parameter.



 Comments   
Comment by Mathias Stearn [ 30/Dec/09 ]

http://www.mongodb.org/display/DOCS/Atomic+Operations#AtomicOperations-FindandModify%28orRemove%29

Comment by Mathias Stearn [ 30/Dec/09 ]

Finished the implementation, but leaving this bug open to remind me to add a wiki page.

Comment by auto [ 30/Dec/09 ]

Author:

{'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}

Message: FindAndModify command SERVER-459
http://github.com/mongodb/mongo/commit/225173bb31d7536b9e402145c7f65db00e2523ab

Generated at Thu Feb 08 02:54:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.