[SERVER-15487] mongoshim should support command mode Created: 01/Oct/14  Updated: 25/Oct/14  Resolved: 06/Oct/14

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 2.7.6
Fix Version/s: 2.7.8

Type: New Feature Priority: Minor - P4
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:
Linked BF Score: 0

 Description   

Add a --mode=command to mongoshim.
Command objects will be read from stdin/file and passed as db.runCommand() operands.



 Comments   
Comment by Githook User [ 06/Oct/14 ]

Author:

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

Message: SERVER-15487 added 'command' mode to run commands on database
extended processFile() and gotObject() to accept output stream
removed 'applyOps' mode
general code clean up - removed options that are either unused or replaced by --mode
Branch: master
https://github.com/mongodb/mongo/commit/33c65901a5814298482d58005c5f83f013c28319

Comment by Michael O'Brien [ 01/Oct/14 ]

milkie the use case for this is so that the tools can run commands (listDatabases, listCollections, createIndex, etc) that are necessary for dump/restore/etc. without needing to rely on serializing the command into JSON and passing it as a command line argument to the shim, which is more brittle.

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