summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.cpp
diff options
context:
space:
mode:
authorAndreas Nilsson <andreas.nilsson@mongodb.com>2016-07-08 11:49:51 -0400
committerAndreas Nilsson <andreas.nilsson@mongodb.com>2016-07-08 16:03:13 -0400
commitb5d6a7c61c1ecdaf9d577ca75942d82363e0552c (patch)
tree2f6451298e6bb8fd0ce4a9a6dca663d87df5a46c /src/mongo/db/curop.cpp
parent33c199e50fc96251c1477ca8e9f92168feddbc88 (diff)
downloadmongo-b5d6a7c61c1ecdaf9d577ca75942d82363e0552c.tar.gz
SERVER-24840 - Remove unnecessary parameters to BSONObj::toString
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r--src/mongo/db/curop.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp
index c76ba86105a..5c4e4ce118e 100644
--- a/src/mongo/db/curop.cpp
+++ b/src/mongo/db/curop.cpp
@@ -311,9 +311,7 @@ void appendAsObjOrString(StringData name,
} else {
// Generate an abbreviated serialization for the object, by passing false as the
// "full" argument to obj.toString().
- const bool isArray = false;
- const bool full = false;
- std::string objToString = obj.toString(isArray, full);
+ std::string objToString = obj.toString();
if (objToString.size() <= maxSize) {
builder->append(name, objToString);
} else {