diff options
Diffstat (limited to 'tools/dump.cpp')
-rw-r--r-- | tools/dump.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/dump.cpp b/tools/dump.cpp index c99aaaa..155f84b 100644 --- a/tools/dump.cpp +++ b/tools/dump.cpp @@ -293,6 +293,8 @@ public: } } + auth("local"); + BSONObj op = conn(true).findOne(opLogName, Query().sort("$natural", -1), 0, QueryOption_SlaveOk); if (op.isEmpty()) { cout << "No operations in oplog. Please ensure you are connecting to a master." << endl; |