Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SERVER-7259 Fix mongodump output to stdout by removing log line and m…

…aking sure stdout is flushed

Conflicts:
	src/mongo/tools/tool.cpp
  • Loading branch information...
commit f96289dd395b6030429189ed06687c4be0b54c40 1 parent 2642f0c
@stbrody stbrody authored milkie committed
Showing with 3 additions and 1 deletion.
  1. +0 −1  src/mongo/tools/dump.cpp
  2. +3 −0  src/mongo/tools/tool.cpp
View
1  src/mongo/tools/dump.cpp
@@ -98,7 +98,6 @@ class Dump : public Tool {
queryOptions |= QueryOption_OplogReplay;
else if ( _query.isEmpty() && !hasParam("dbpath") && !hasParam("forceTableScan") ) {
q.snapshot();
- log() << "doing snapshot query" << endl;
}
DBClientBase& connBase = conn(true);
View
3  src/mongo/tools/tool.cpp
@@ -308,6 +308,9 @@ namespace mongo {
if ( useDirectClient )
dbexit( EXIT_CLEAN );
+
+ fflush(stdout);
+ fflush(stderr);
return ret;
}
Please sign in to comment.
Something went wrong with that request. Please try again.