diff options
author | Benety Goh <benety@mongodb.com> | 2014-03-18 11:12:09 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2014-03-18 11:12:09 -0400 |
commit | 116cced41aa637ad4ae4042306489a324377b400 (patch) | |
tree | 2cca8d7fb36864d22fb29cb40bfa4e954d2028b5 /src/mongo/db/curop.h | |
parent | 71245a471274b963db720792bd3ea622cce0d70f (diff) | |
download | mongo-116cced41aa637ad4ae4042306489a324377b400.tar.gz |
SERVER-13241 system profile will hold plan summary if execution stats object is too large
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r-- | src/mongo/db/curop.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h index 1226d0f3ed1..7562f47a01d 100644 --- a/src/mongo/db/curop.h +++ b/src/mongo/db/curop.h @@ -84,6 +84,7 @@ namespace mongo { int size() const { return *_size; } bool have() const { return size() > 0; } + bool tooBig() const { return size() == TOO_BIG_SENTINEL; } BSONObj get() const { scoped_spinlock lk(_lock); @@ -176,7 +177,7 @@ namespace mongo { // New Query Framework debugging/profiling info // TODO: should this really be an opaque BSONObj? Not sure. - CachedBSONObj<2048> execStats; + CachedBSONObj<4096> execStats; // error handling ExceptionInfo exceptionInfo; |