diff options
author | Andy Schwerin <schwerin@10gen.com> | 2012-04-30 15:02:41 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@10gen.com> | 2012-04-30 16:10:21 -0400 |
commit | 912bc3c25f46041ee1a69a8bef1e6b083475392d (patch) | |
tree | 139c50759e34fbfa8efe7ed49a1f77efeaa3f9af /src/mongo/db/dbcommands_generic.cpp | |
parent | a3551eadc4857ac4daf07837157909dc2d474c08 (diff) | |
download | mongo-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.cpp | 2 |
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; } |