Skip to content

Commit

Permalink
fix compile of validate #527
Browse files Browse the repository at this point in the history
  • Loading branch information
leifwalsh committed Sep 21, 2013
1 parent 1670c5c commit ae0844c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mongo/db/commands/dbcommands_deprecated.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ namespace mongo {
virtual int txnFlags() const { return noTxnFlags(); }
virtual bool canRunInMultiStmtTxn() const { return true; }
virtual OpSettings getOpSettings() const { return OpSettings(); }
// No auth required
virtual void addRequiredPrivileges(const std::string& dbname,
const BSONObj& cmdObj,
std::vector<Privilege>* out) {}

bool run(const string& dbname , BSONObj& cmdObj, int, string& errmsg, BSONObjBuilder& result, bool fromRepl ) {
string ns = dbname + "." + cmdObj.firstElement().valuestrsafe();
Expand Down

0 comments on commit ae0844c

Please sign in to comment.