summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-02-13 10:45:11 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-02-13 16:13:43 -0500
commitf5fc5c0ab87b4f0909387af9819fe87e5ed4758c (patch)
treeb32fa6047277fb60f3859482ceb0e03bb5a6eeb3 /src/mongo/db/curop.cpp
parentdbdb362027d61abbb396dcc091ddd8dd8e8ece22 (diff)
downloadmongo-f5fc5c0ab87b4f0909387af9819fe87e5ed4758c.tar.gz
SERVER-13339 Cleanup in preparation for removing unused constructor
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r--src/mongo/db/curop.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp
index f69d6196575..ae26aa84dd2 100644
--- a/src/mongo/db/curop.cpp
+++ b/src/mongo/db/curop.cpp
@@ -37,6 +37,7 @@
#include "mongo/db/commands/server_status_metric.h"
#include "mongo/db/catalog/database.h"
#include "mongo/db/global_environment_experiment.h"
+#include "mongo/db/json.h"
#include "mongo/db/stats/top.h"
#include "mongo/util/fail_point_service.h"
#include "mongo/util/log.h"
@@ -45,9 +46,9 @@ namespace mongo {
using std::string;
- // Enabling the maxTimeAlwaysTimeOut fail point will cause any query or command run with a valid
- // non-zero max time to fail immediately. Any getmore operation on a cursor already created
- // with a valid non-zero max time will also fail immediately.
+ // Enabling the maxTimeAlwaysTimeOut fail point will cause any query or command run with a
+ // valid non-zero max time to fail immediately. Any getmore operation on a cursor already
+ // created with a valid non-zero max time will also fail immediately.
//
// This fail point cannot be used with the maxTimeNeverTimeOut fail point.
MONGO_FP_DECLARE(maxTimeAlwaysTimeOut);
@@ -58,7 +59,10 @@ namespace mongo {
// This fail point cannot be used with the maxTimeAlwaysTimeOut fail point.
MONGO_FP_DECLARE(maxTimeNeverTimeOut);
- // todo : move more here
+
+ BSONObj CachedBSONObjBase::_tooBig =
+ fromjson("{\"$msg\":\"query not recording (too large)\"}");
+
CurOp::CurOp( Client * client , CurOp * wrapped ) :
_client(client),