diff options
Diffstat (limited to 'src/mongo/db/catalog/coll_mod.h')
| -rw-r--r-- | src/mongo/db/catalog/coll_mod.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/coll_mod.h b/src/mongo/db/catalog/coll_mod.h index f08aca11444..f2b0c1702d5 100644 --- a/src/mongo/db/catalog/coll_mod.h +++ b/src/mongo/db/catalog/coll_mod.h @@ -48,6 +48,18 @@ class OperationContext; void addCollectionUUIDs(OperationContext* opCtx); /** + * Checks if the collMod request is converting an index to unique. + */ +bool isCollModIndexUniqueConversion(const CollModRequest& request); + +/** + * Constructs a valid collMod dry-run request from the original request. + * The 'dryRun' option can only be used with the index 'unique' option, so we assume 'request' must + * have the 'unique' option. The function will also remove other options from the original request. + */ +CollModRequest makeCollModDryRunRequest(const CollModRequest& request); + +/** * Performs the collection modification described in "cmd" on the collection "ns". */ Status processCollModCommand(OperationContext* opCtx, |
