diff options
author | kauboy26 <vishnu.kaushik@mongodb.com> | 2023-05-17 20:55:33 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-17 23:17:02 +0000 |
commit | 7ce60b59b24a893bb6494089ea4db8e19901f48d (patch) | |
tree | a528735ad4207c8f409bb361f4b120492d5732ca /src/mongo/db/commands/bulk_write_common.h | |
parent | de55cd2ac227dcc8cae2fd021abc291e86b2abb2 (diff) | |
download | mongo-7ce60b59b24a893bb6494089ea4db8e19901f48d.tar.gz |
SERVER-72989 Attach stmtIds to bulkWrite request sent by mongos
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 |