diff options
Diffstat (limited to 'src/mongo/db/commands/bulk_write_common.h')
-rw-r--r-- | src/mongo/db/commands/bulk_write_common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/commands/bulk_write_common.h b/src/mongo/db/commands/bulk_write_common.h index 754a644083f..ec79ea13464 100644 --- a/src/mongo/db/commands/bulk_write_common.h +++ b/src/mongo/db/commands/bulk_write_common.h @@ -49,5 +49,11 @@ void validateRequest(const BulkWriteCommandRequest& req, bool isRetryableWrite); */ std::vector<Privilege> getPrivileges(const BulkWriteCommandRequest& req); +/** + * Get the statement ID for an operation within a bulkWrite command, taking into consideration + * whether the stmtId / stmtIds fields are present on the request. + */ +int32_t getStatementId(const BulkWriteCommandRequest& req, size_t currentOpIdx); + } // namespace bulk_write_common } // namespace mongo |