Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
dwight authored and erh committed Sep 15, 2010
1 parent 96c9f99 commit 4e39882
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 27 deletions.
4 changes: 1 addition & 3 deletions db/commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ namespace mongo {
Note if run() returns false, we do NOT log.
*/
virtual bool logTheOp() {
return false;
}
virtual bool logTheOp() { return false; }

virtual void help( stringstream& help ) const;

Expand Down
14 changes: 2 additions & 12 deletions db/dbcommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -765,9 +765,6 @@ namespace mongo {

class CmdListDatabases : public Command {
public:
virtual bool logTheOp() {
return false;
}
virtual bool slaveOk() const {
return true;
}
Expand Down Expand Up @@ -1600,9 +1597,6 @@ namespace mongo {
class CmdWhatsMyUri : public Command {
public:
CmdWhatsMyUri() : Command("whatsmyuri") { }
virtual bool logTheOp() {
return false; // the modification will be logged directly
}
virtual bool slaveOk() const {
return true;
}
Expand Down Expand Up @@ -1738,12 +1732,8 @@ namespace mongo {
public:
virtual LockType locktype() const { return NONE; }
virtual bool adminOnly() const { return true; }
virtual bool logTheOp() {
return false;
}
virtual bool slaveOk() const {
return true;
}
virtual bool logTheOp() { return false; }
virtual bool slaveOk() const { return true; }
virtual void help( stringstream& help ) const {
help << "internal testing command. Makes db block (in a read lock) for 100 seconds\n";
help << "w:true write lock";
Expand Down
10 changes: 1 addition & 9 deletions db/repl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ namespace mongo {
virtual bool adminOnly() const {
return true;
}
virtual bool logTheOp() {
return false;
}
virtual LockType locktype() const { return WRITE; }
void help(stringstream&h) const { h << "replace a node in a replica pair"; }
CmdReplacePeer() : Command("replacePeer", false, "replacepeer") { }
Expand Down Expand Up @@ -199,9 +196,6 @@ namespace mongo {
virtual bool adminOnly() const {
return true;
}
virtual bool logTheOp() {
return false;
}
virtual void help(stringstream& h) const { h << "internal"; }
virtual LockType locktype() const { return WRITE; }
CmdForceDead() : Command("forcedead") { }
Expand All @@ -222,9 +216,7 @@ namespace mongo {
virtual bool adminOnly() const {
return true;
}
virtual bool logTheOp() {
return false;
}
virtual bool logTheOp() { return false; }
virtual LockType locktype() const { return WRITE; }
void help(stringstream&h) const { h << "resync (from scratch) an out of date replica slave.\nhttp://www.mongodb.org/display/DOCS/Master+Slave"; }
CmdResync() : Command("resync") { }
Expand Down
4 changes: 1 addition & 3 deletions db/security_commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ namespace mongo {
class CmdGetNonce : public Command {
public:
virtual bool requiresAuth() { return false; }
virtual bool logTheOp() {
return false;
}
virtual bool logTheOp() { return false; }
virtual bool slaveOk() const {
return true;
}
Expand Down

0 comments on commit 4e39882

Please sign in to comment.