summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/write_ops.h
diff options
context:
space:
mode:
authorLucas de Castro Borges <lucas@gnuabordo.com.br>2025-02-11 15:07:35 -0300
committerLucas de Castro Borges <lucas@gnuabordo.com.br>2025-02-11 15:07:35 -0300
commit4cb8841196d0625dfa3825aa326f071cd27c7b8b (patch)
tree1682a647d4463397c119183369ae6f750d5fdcff /src/mongo/db/ops/write_ops.h
parentaa03c6362cbaa767638e6eed9b031d86dd2643d1 (diff)
parent8f0827553e09872941945a093b647a4211a9db7f (diff)
Update upstream source from tag 'upstream/6.0.0'master
Update to upstream version '6.0.0' with Debian dir 5604a80ec1c96ca76f25f40d78e6ef855abec322
Diffstat (limited to 'src/mongo/db/ops/write_ops.h')
-rw-r--r--src/mongo/db/ops/write_ops.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/mongo/db/ops/write_ops.h b/src/mongo/db/ops/write_ops.h
index 2e55f0054e5..d78791fdfdc 100644
--- a/src/mongo/db/ops/write_ops.h
+++ b/src/mongo/db/ops/write_ops.h
@@ -104,48 +104,6 @@ const std::vector<BSONObj>& arrayFiltersOf(const T& opEntry) {
}
/**
- * Utility which estimates the size in bytes of an update statement with the given parameters, when
- * serialized in the format used for the update command.
- */
-int getUpdateSizeEstimate(const BSONObj& q,
- const write_ops::UpdateModification& u,
- const boost::optional<mongo::BSONObj>& c,
- bool includeUpsertSupplied,
- const boost::optional<mongo::BSONObj>& collation,
- const boost::optional<std::vector<mongo::BSONObj>>& arrayFilters,
- const mongo::BSONObj& hint);
-
-int getDeleteSizeEstimate(const BSONObj& q,
- const boost::optional<mongo::BSONObj>& collation,
- const mongo::BSONObj& hint);
-
-/**
- * Set of utilities which return true if the estimated write size is greater than or equal to the
- * actual write size, false otherwise.
- *
- * If the caller specifies 'unparsedRequest', these utilities will also return true if the request
- * used document sequences and the size estimate is greater than the maximum size of a BSONObj. This
- * indicates that 'unparsedRequest' cannot be serialized to a BSONObj because it exceeds the maximum
- * BSONObj size.
- */
-bool verifySizeEstimate(const write_ops::UpdateOpEntry& update);
-bool verifySizeEstimate(const write_ops::DeleteOpEntry& deleteOp);
-bool verifySizeEstimate(const InsertCommandRequest& insertReq,
- const OpMsgRequest* unparsedRequest = nullptr);
-bool verifySizeEstimate(const UpdateCommandRequest& updateReq,
- const OpMsgRequest* unparsedRequest = nullptr);
-bool verifySizeEstimate(const DeleteCommandRequest& deleteReq,
- const OpMsgRequest* unparsedRequest = nullptr);
-
-/**
- * Set of utilities which estimate the size of the headers (that is, all fields in a write command
- * outside of the write statements themselves) of an insert/update/delete command, respectively.
- */
-int getInsertHeaderSizeEstimate(const InsertCommandRequest& insertReq);
-int getUpdateHeaderSizeEstimate(const UpdateCommandRequest& updateReq);
-int getDeleteHeaderSizeEstimate(const DeleteCommandRequest& deleteReq);
-
-/**
* If the response from a write command contains any write errors, it will throw the first one. All
* the remaining errors will be disregarded.
*