summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-01-31 02:05:45 -0500
committerEliot Horowitz <eliot@10gen.com>2011-01-31 02:05:45 -0500
commit9a6f2dcf91c2025f7549c875e78e4a203b26adcf (patch)
tree5114818d68ba6f08864df02e8a54d63c0d1f0277 /tools
parent6a7e659b02ad151ae15f081d63cc38cc60f1c5fc (diff)
downloadmongo-9a6f2dcf91c2025f7549c875e78e4a203b26adcf.tar.gz
fix mongoimport progress bar with stdin SERVER-2427
Diffstat (limited to 'tools')
-rw-r--r--tools/import.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/import.cpp b/tools/import.cpp
index a3d9166ccf7..6b59bdce751 100644
--- a/tools/import.cpp
+++ b/tools/import.cpp
@@ -168,7 +168,7 @@ public:
int run() {
string filename = getParam( "file" );
- long long fileSize = -1;
+ long long fileSize = 0;
istream * in = &cin;