diff options
Diffstat (limited to 'src/mongo/tools/mongoshim_options.h')
-rw-r--r-- | src/mongo/tools/mongoshim_options.h | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/src/mongo/tools/mongoshim_options.h b/src/mongo/tools/mongoshim_options.h index 5878022e35e..5c1c9a12c62 100644 --- a/src/mongo/tools/mongoshim_options.h +++ b/src/mongo/tools/mongoshim_options.h @@ -36,27 +36,20 @@ #include "mongo/base/status.h" #include "mongo/bson/bsonobj.h" +#include "mongo/tools/shim_mode.h" #include "mongo/tools/tool_options.h" namespace mongo { struct MongoShimGlobalParams { - bool load; - - // If true, removes all documents in collection. - // If query is provided, only documents matching query will be removed. - bool remove; - - // If true, read oplog entries from stdin to use as input to "applyOps" command. - bool applyOps; - - // If true, attempts to repair bad data in collection. - // Also writes contents of collection to output. - bool repair; + MongoShimGlobalParams() : mode(ShimMode::kNumShimModes) { } + // Mongoshim can run in one mode per invocation. + // See shim_mode.h for list of supported modes. + ShimMode mode; bool drop; - bool upsert; + std::vector<std::string> upsertFields; std::string query; @@ -76,8 +69,6 @@ namespace mongo { std::string outputFile; bool outputFileSpecified; - bool slaveOk; - bool snapShotQuery; unsigned int skip; unsigned int limit; std::string sort; |