summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbcommands_generic.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2012-04-30 15:02:41 -0400
committerAndy Schwerin <schwerin@10gen.com>2012-04-30 16:10:21 -0400
commit912bc3c25f46041ee1a69a8bef1e6b083475392d (patch)
tree139c50759e34fbfa8efe7ed49a1f77efeaa3f9af /src/mongo/db/dbcommands_generic.cpp
parenta3551eadc4857ac4daf07837157909dc2d474c08 (diff)
downloadmongo-912bc3c25f46041ee1a69a8bef1e6b083475392d.tar.gz
Do not call dbexit() from within logRotate or initLogging().
While, perhaps, not a permanent solution, using fassert() when log rotation fails is a better choice than dbexit(), because fassert() is a fast shutdown path. See SERVER-5520.
Diffstat (limited to 'src/mongo/db/dbcommands_generic.cpp')
-rw-r--r--src/mongo/db/dbcommands_generic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/dbcommands_generic.cpp b/src/mongo/db/dbcommands_generic.cpp
index 4c67576e663..2e85a4efb80 100644
--- a/src/mongo/db/dbcommands_generic.cpp
+++ b/src/mongo/db/dbcommands_generic.cpp
@@ -333,7 +333,7 @@ namespace mongo {
virtual bool slaveOk() const { return true; }
virtual bool adminOnly() const { return true; }
virtual bool run(const string& ns, BSONObj& cmdObj, int, string& errmsg, BSONObjBuilder& result, bool fromRepl) {
- rotateLogs();
+ fassert(16175, rotateLogs());
return 1;
}