[SERVER-15325] extend mongo shim to support removal of documents in a collection Created: 19/Sep/14  Updated: 18/Feb/15  Resolved: 24/Sep/14

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

Type: New Feature Priority: Major - P3
Reporter: Michael O'Brien Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: community-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-15096 Create standalone tool to read/write ... Closed
Sprint: Server 2.7.4, Server 2.7.5, Server 2.7.6
Participants:

 Comments   
Comment by Githook User [ 24/Sep/14 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-15325 added mongo shim feature to remove documents from a collection
Branch: master
https://github.com/mongodb/mongo/commit/37acdec21b4f8ab951293a0de317bc52b1a9fd65

Comment by Michael O'Brien [ 23/Sep/14 ]

pseudo-jstest:

m1 =MongoRunner.runMongod()
db = m1.getDb("test")
for(var i=0;i<10;i++){
    db.test.insert({x:i})
}
mongoshim --dbpath=<dbpath> --query="{x:{$gt:4}}" --remove
 
assert(db.test.count() == 5)
 

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