diff options
author | Benety Goh <benety@mongodb.com> | 2014-09-22 12:03:05 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2014-09-22 17:56:44 -0400 |
commit | 7a188f499b3411c1a4f590bdee8a18f84495af11 (patch) | |
tree | b4d47ab4f11856ac55ca51f4ff8f5dfce2430438 /src/mongo/tools | |
parent | 7babda888912d6e0bc667540577dcc6e14d405df (diff) | |
download | mongo-7a188f499b3411c1a4f590bdee8a18f84495af11.tar.gz |
SERVER-15096 added mongoshim to git ignore. minor cleanup of mongoshim
Diffstat (limited to 'src/mongo/tools')
-rw-r--r-- | src/mongo/tools/mongoshim_options.cpp | 4 | ||||
-rw-r--r-- | src/mongo/tools/shim.cpp | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/tools/mongoshim_options.cpp b/src/mongo/tools/mongoshim_options.cpp index 1839e80f698..53c4e98c23f 100644 --- a/src/mongo/tools/mongoshim_options.cpp +++ b/src/mongo/tools/mongoshim_options.cpp @@ -59,7 +59,7 @@ namespace mongo { } options->addOptionChaining("load", "load", moe::Switch, - "loat data" ); + "load data" ); options->addOptionChaining("drop", "drop", moe::Switch, "drop collection before import" ); @@ -93,7 +93,7 @@ namespace mongo { } void printMongoShimHelp(std::ostream* out) { - *out << "Shim MongoDB data to CSV, TSV or JSON files.\n" << std::endl; + *out << "Read/write directly to stored format.\n" << std::endl; *out << moe::startupOptions.helpString(); *out << std::flush; } diff --git a/src/mongo/tools/shim.cpp b/src/mongo/tools/shim.cpp index 1b34d4b1347..5eb93d262e8 100644 --- a/src/mongo/tools/shim.cpp +++ b/src/mongo/tools/shim.cpp @@ -91,9 +91,7 @@ public: 0, QueryOption_NoCursorTimeout); - long long num = 0; while ( cursor->more() ) { - num++; BSONObj obj = cursor->next(); out->write( obj.objdata(), obj.objsize() ); } |