summaryrefslogtreecommitdiff
path: root/src/mongo/s/write_ops/batch_upconvert.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/write_ops/batch_upconvert.h')
-rw-r--r--src/mongo/s/write_ops/batch_upconvert.h39
1 files changed, 19 insertions, 20 deletions
diff --git a/src/mongo/s/write_ops/batch_upconvert.h b/src/mongo/s/write_ops/batch_upconvert.h
index 46b6d4552b6..a0b4712cf96 100644
--- a/src/mongo/s/write_ops/batch_upconvert.h
+++ b/src/mongo/s/write_ops/batch_upconvert.h
@@ -37,29 +37,28 @@
namespace mongo {
- //
- // Utility functions for up-converting incoming write messages into batch write requests.
- // NOTE: These functions throw on invalid message format.
- //
+//
+// Utility functions for up-converting incoming write messages into batch write requests.
+// NOTE: These functions throw on invalid message format.
+//
- void msgToBatchRequests( const Message& msg, std::vector<BatchedCommandRequest*>* requests );
+void msgToBatchRequests(const Message& msg, std::vector<BatchedCommandRequest*>* requests);
- // Batch inserts may get mapped to multiple batch requests, to avoid spilling MaxBSONObjSize
- void msgToBatchInserts( const Message& insertMsg,
- std::vector<BatchedCommandRequest*>* insertRequests );
+// Batch inserts may get mapped to multiple batch requests, to avoid spilling MaxBSONObjSize
+void msgToBatchInserts(const Message& insertMsg,
+ std::vector<BatchedCommandRequest*>* insertRequests);
- BatchedCommandRequest* msgToBatchUpdate( const Message& updateMsg );
+BatchedCommandRequest* msgToBatchUpdate(const Message& updateMsg);
- BatchedCommandRequest* msgToBatchDelete( const Message& deleteMsg );
-
- /**
- * Utility function for recording completed batch writes into the LastError object.
- * (Interpreting the response requires the request object as well.)
- *
- * Returns true if an error occurred in the batch.
- */
- bool batchErrorToLastError( const BatchedCommandRequest& request,
- const BatchedCommandResponse& response,
- LastError* error );
+BatchedCommandRequest* msgToBatchDelete(const Message& deleteMsg);
+/**
+ * Utility function for recording completed batch writes into the LastError object.
+ * (Interpreting the response requires the request object as well.)
+ *
+ * Returns true if an error occurred in the batch.
+ */
+bool batchErrorToLastError(const BatchedCommandRequest& request,
+ const BatchedCommandResponse& response,
+ LastError* error);
}