summaryrefslogtreecommitdiff
path: root/db/dbcommands.cpp
diff options
context:
space:
mode:
authorDwight <dwight@10gen.com>2011-08-16 12:09:09 -0400
committerDwight <dwight@10gen.com>2011-08-16 12:09:09 -0400
commiteaf7bd21e5f9cc0ecfdc14926a82d0642d3720c1 (patch)
treed00dba1bae0aead699726eebf220a66fc608127d /db/dbcommands.cpp
parent4edeb8f2b0050dc918a7d935afd458dd05ff515a (diff)
downloadmongo-eaf7bd21e5f9cc0ecfdc14926a82d0642d3720c1.tar.gz
fix ageoutjournalfiles parameter setting bug SERVER-3302
Diffstat (limited to 'db/dbcommands.cpp')
-rw-r--r--db/dbcommands.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/dbcommands.cpp b/db/dbcommands.cpp
index be483bad830..2edd7684ff8 100644
--- a/db/dbcommands.cpp
+++ b/db/dbcommands.cpp
@@ -54,14 +54,16 @@ namespace mongo {
namespace dur {
void setAgeOutJournalFiles(bool rotate);
}
+ /** @return true if fields found */
bool setParmsMongodSpecific(const string& dbname, BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool fromRepl ) {
BSONElement e = cmdObj["ageOutJournalFiles"];
if( !e.eoo() ) {
bool r = e.trueValue();
log() << "ageOutJournalFiles " << r << endl;
dur::setAgeOutJournalFiles(r);
+ return true;
}
- return true;
+ return false;
}
void flushDiagLog();