diff options
author | Marcos José Grillo Ramirez <marcos.grillo@mongodb.com> | 2023-04-30 01:24:00 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-30 02:04:07 +0000 |
commit | b1cff9e72798e2533586d94c788f4ac717d559b7 (patch) | |
tree | c11cfe49c6d859168438d560ac3cf656b4f6a1d2 /src/mongo/db/s/sharding_ddl_util.h | |
parent | df78c930a46ebc670e156387b9afb41b7782aa88 (diff) | |
download | mongo-b1cff9e72798e2533586d94c788f4ac717d559b7.tar.gz |
SERVER-73539 Add replay protection in DDL when setting the allow migrations flag
Diffstat (limited to 'src/mongo/db/s/sharding_ddl_util.h')
-rw-r--r-- | src/mongo/db/s/sharding_ddl_util.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/s/sharding_ddl_util.h b/src/mongo/db/s/sharding_ddl_util.h index f0dd0a62f30..47de8ca794a 100644 --- a/src/mongo/db/s/sharding_ddl_util.h +++ b/src/mongo/db/s/sharding_ddl_util.h @@ -183,7 +183,8 @@ boost::optional<CreateCollectionResponse> checkIfCollectionAlreadySharded( */ void stopMigrations(OperationContext* opCtx, const NamespaceString& nss, - const boost::optional<UUID>& expectedCollectionUUID); + const boost::optional<UUID>& expectedCollectionUUID, + const boost::optional<OperationSessionInfo>& osi = boost::none); /** * Resume migrations and balancing rounds for the given nss. @@ -192,7 +193,8 @@ void stopMigrations(OperationContext* opCtx, */ void resumeMigrations(OperationContext* opCtx, const NamespaceString& nss, - const boost::optional<UUID>& expectedCollectionUUID); + const boost::optional<UUID>& expectedCollectionUUID, + const boost::optional<OperationSessionInfo>& osi = boost::none); /** * Calls to the config server primary to get the collection document for the given nss. |