diff options
Diffstat (limited to 'src/mongo/db/query/explain_common.h')
-rw-r--r-- | src/mongo/db/query/explain_common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/query/explain_common.h b/src/mongo/db/query/explain_common.h index d9b035beb8f..bc5637cebd1 100644 --- a/src/mongo/db/query/explain_common.h +++ b/src/mongo/db/query/explain_common.h @@ -43,4 +43,10 @@ namespace mongo::explain_common { */ void generateServerInfo(BSONObjBuilder* out); +/** + * Conditionally appends a BSONObj to 'bob' depending on whether or not the maximum user size for a + * BSON object will be exceeded. + */ +bool appendIfRoom(const BSONObj& toAppend, StringData fieldName, BSONObjBuilder* out); + } // namespace mongo::explain_common |