We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8b902e commit 780539fCopy full SHA for 780539f
tools/dump.cpp
@@ -55,16 +55,14 @@ class Dump : public Tool {
55
};
56
57
void doCollection( const string coll , ostream &out , ProgressMeter *m ) {
58
- Query q;
59
- if ( _query.isEmpty() && !hasParam("dbpath"))
60
- q.snapshot();
61
- else
62
- q = _query;
+ Query q = _query;
63
64
int queryOptions = QueryOption_SlaveOk | QueryOption_NoCursorTimeout;
65
if (startsWith(coll.c_str(), "local.oplog."))
66
queryOptions |= QueryOption_OplogReplay;
67
-
+ else if ( _query.isEmpty() && !hasParam("dbpath"))
+ q.snapshot();
+
68
DBClientBase& connBase = conn(true);
69
Writer writer(out, m);
70
0 commit comments