summaryrefslogtreecommitdiff
path: root/src/mongo/bson/bsonobj.cpp
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@10gen.com>2018-04-13 16:09:46 -0400
committerMatthew Russotto <matthew.russotto@10gen.com>2018-04-13 16:09:46 -0400
commit7c65bad3c3dd5e9fe47cdb835d5374113596df3e (patch)
tree6cf3f379a4d921cafc834933079ca4992ce23636 /src/mongo/bson/bsonobj.cpp
parent2416088059f8b1fe0a14e1681c66a11e09f3fc3f (diff)
downloadmongo-7c65bad3c3dd5e9fe47cdb835d5374113596df3e.tar.gz
SERVER-33951 Abort transactions when the pending writes pass 16MB worth of write data
Diffstat (limited to 'src/mongo/bson/bsonobj.cpp')
-rw-r--r--src/mongo/bson/bsonobj.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/bson/bsonobj.cpp b/src/mongo/bson/bsonobj.cpp
index 6f357308727..244d4ff5c67 100644
--- a/src/mongo/bson/bsonobj.cpp
+++ b/src/mongo/bson/bsonobj.cpp
@@ -98,7 +98,7 @@ void BSONObj::_assertInvalid() const {
ss << " First element: " << e.toString();
} catch (...) {
}
- massert(10334, ss.str(), 0);
+ massert(ErrorCodes::BSONObjectTooLarge, ss.str(), 0);
}
BSONObj BSONObj::copy() const {